diff --git a/js/includes/input-facebook-contact-min.js b/js/includes/input-facebook-contact-min.js index 86c60d3..4e64b4b 100644 --- a/js/includes/input-facebook-contact-min.js +++ b/js/includes/input-facebook-contact-min.js @@ -1,4 +1,4 @@ -function inputFacebookContact(a,b){this.container=a;this.nav_container=b}inputFacebookContact.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null};inputFacebookContact.prototype.check=function(a){return 0=a.length&&this.add({uid:a.length});this.updateNavBar()}; diff --git a/js/includes/input-facebook-contact.js b/js/includes/input-facebook-contact.js index c1e6be8..0f02270 100644 --- a/js/includes/input-facebook-contact.js +++ b/js/includes/input-facebook-contact.js @@ -20,7 +20,7 @@ inputFacebookContact.prototype = { =========================================================*/ inputFacebookContact.prototype.check = function(deflated){ /* On retourne la validité du formulaire */ - return deflated.username.length+deflated.firstname.length+deflated.lastname.length > 0; + return deflated.username.length >= 0; } diff --git a/js/includes/input-facebook-fiche-min.js b/js/includes/input-facebook-fiche-min.js index 09f8cf6..3736d0a 100644 --- a/js/includes/input-facebook-fiche-min.js +++ b/js/includes/input-facebook-fiche-min.js @@ -4,8 +4,8 @@ reltypeSpecial:c.reltypeSpecial,city:c.city,quartier:c.quartier,cp:c.cp,loc:c.lo inputFacebookFiche.prototype.add=function(a){console.log("FICHE: ADD");if(null==a.uid||isNaN(a.uid)||null==a.contact||isNaN(a.contact))return!1;a.city=null!=a.city?a.city:this.defaultData.city;a.quartier=null!=a.quartier?a.quartier:this.defaultData.quartier;a.cp=null!=a.cp?a.cp:this.defaultData.cp;a.duration[0]=null!=a.duration[0]?a.duration[0]:this.defaultData.duration[0];a.duration[1]=null!=a.duration[1]?a.duration[1]:this.defaultData.duration[1];a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial: this.defaultData.reltypeSpecial;a.contextSpecial[0]=null!=a.contextSpecial[0]?a.contextSpecial[0]:this.defaultData.contextSpecial[0];a.contextSpecial[1]=null!=a.contextSpecial[1]?a.contextSpecial[1]:this.defaultData.contextSpecial[1];a.contextSpecial[2]=null!=a.contextSpecial[2]?a.contextSpecial[2]:this.defaultData.contextSpecial[2];a.connectSpecial[0]=null!=a.connectSpecial[0]?a.connectSpecial[0]:this.defaultData.connectSpecial[0];a.connectSpecial[1]=null!=a.connectSpecial[1]?a.connectSpecial[1]: this.defaultData.connectSpecial[1];a.job=null!=a.job?a.job:this.defaultData.job;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.age=null!=a.age?a.age:this.defaultData.age;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.famsit=null!=a.famsit?a.famsit:this.defaultData.famsit;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.loc=null!=a.loc?a.loc:this.defaultData.loc;a.context=null!=a.context?a.context:this.defaultData.context;a.freq=null!=a.freq?a.freq:this.defaultData.freq; -a.connect=null!=a.connect?a.connect:this.defaultData.connect;var b=lsi.get("f_contacts",a.contact);if(!1===b)return!1;this.container.innerHTML+=fFicheBuilder.build({name:readableName(b.username,b.firstname,b.lastname),countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],contextspecial2:a.contextSpecial[2], -connectspecial0:a.connectSpecial[0],connectspecial1:a.connectSpecial[1]});b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+ +a.connect=null!=a.connect?a.connect:this.defaultData.connect;var b=lsi.get("f_contacts",a.contact);if(!1===b)return!1;this.container.innerHTML+=fFicheBuilder.build({name:b.username,countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],contextspecial2:a.contextSpecial[2],connectspecial0:a.connectSpecial[0], +connectspecial1:a.connectSpecial[1]});b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+ a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+a.age+'"]');null!=b&&b.setAttribute("selected","selected");for(var c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]'),b=0;binput[type="radio"][data-name="famsit"]'); for(b=0;binput[type="radio"][data-name="reltype"]');for(b=0;binput[type="radio"][data-name="loc"]'); for(b=0;binput[type="radio"][data-name="context"]');for(b=0;binput[type="radio"][data-name="freq"]'); diff --git a/js/includes/input-facebook-fiche.js b/js/includes/input-facebook-fiche.js index e240f45..295d0f1 100644 --- a/js/includes/input-facebook-fiche.js +++ b/js/includes/input-facebook-fiche.js @@ -171,7 +171,7 @@ inputFacebookFiche.prototype.add = function(objectData){ // {5} Création physique // this.container.innerHTML += fFicheBuilder.build({ - name: readableName(associatedContact.username, associatedContact.firstname, associatedContact.lastname), + name: associatedContact.username, countcall: associatedContact.countcall, countsms: associatedContact.countsms, uid: objectData.uid, diff --git a/js/includes/input-facebook-matrice-min.js b/js/includes/input-facebook-matrice-min.js index 06e2325..ea136c2 100644 --- a/js/includes/input-facebook-matrice-min.js +++ b/js/includes/input-facebook-matrice-min.js @@ -1,5 +1,5 @@ function inputFacebookMatrice(a){this.container=a}inputFacebookMatrice.prototype={container:this.container}; inputFacebookMatrice.prototype.fieldsToStorage=function(){console.log("MATRICE: FIELDS TO STORAGE");var a=(new FormDeflater(this.container,["input"],["data-name"])).deflate();crc32(JSON.stringify(a));var d={},b;for(b in a)if(a[b]instanceof Array)for(var e in a[b])null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b][e]));else null!==a[b]&&(null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b])));lsi.set("f_matrice",0,d)}; -inputFacebookMatrice.prototype.storageToFields=function(){console.log("MATRICE: STORAGE TO FIELDS");var a=lsi["export"]("f_fiches"),d=lsi.get("f_matrice",0),b=lsi["export"]("f_contacts"),e=[],c;for(c in a)-1==e.indexOf(a[c].contact)&&e.push(a[c].contact);a="";for(c=0;c";0',a+=readableName(f.username,f.firstname,f.lastname),a+=""):a+="";for(var h=0;h",a+='',a+=readableName(g.username,g.firstname,g.lastname),a+=""):h",a+=""):a+=""}a+=""}this.container.innerHTML=a+"
"}; +inputFacebookMatrice.prototype.storageToFields=function(){console.log("MATRICE: STORAGE TO FIELDS");var a=lsi["export"]("f_fiches"),d=lsi.get("f_matrice",0),b=lsi["export"]("f_contacts"),e=[],c;for(c in a)-1==e.indexOf(a[c].contact)&&e.push(a[c].contact);a="";for(c=0;c";0',a+=g.username,a+=""):a+="";for(var f=0;f",a+='', +a+=h.username,a+=""):f",a+=""):a+=""}a+=""}this.container.innerHTML=a+"
"}; inputFacebookMatrice.prototype.attach=function(){console.log("MATRICE: ATTACH");lsi.createDataset("f_matrice");this.storageToFields();var a=this;this.container.addEventListener("click",function(d){a.fieldsToStorage();a.storageToFields()},!1)}; diff --git a/js/includes/input-facebook-matrice.js b/js/includes/input-facebook-matrice.js index 0ad7af1..9c0b1dd 100644 --- a/js/includes/input-facebook-matrice.js +++ b/js/includes/input-facebook-matrice.js @@ -108,7 +108,7 @@ inputFacebookMatrice.prototype.storageToFields = function(){ if( A > 0 ){ // Noms sur la première ligne (abscisses) matrice_html += ''; - matrice_html += readableName(conA.username, conA.firstname, conA.lastname); + matrice_html += conA.username; matrice_html += ''; }else // Sinon, matrice_html += ''; @@ -121,7 +121,7 @@ inputFacebookMatrice.prototype.storageToFields = function(){ if( A == 0 ){ matrice_html += ''; matrice_html += ''; - matrice_html += readableName(conB.username, conB.firstname, conB.lastname), + matrice_html += conB.username; matrice_html += ''; // {4} Valeurs des relations (boutons) // diff --git a/js/includes/input-facebook-mini-min.js b/js/includes/input-facebook-mini-min.js index 90f5dfb..6008039 100644 --- a/js/includes/input-facebook-mini-min.js +++ b/js/includes/input-facebook-mini-min.js @@ -1,12 +1,12 @@ function inputFacebookMini(a,b){this.container=a;this.nav_container=b}inputFacebookMini.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null,defaultData:{sexe:"0",age:".",studies:".",loc:"0",reltype:"0",reltypeSpecial:"",timestamp:0,valid:!1}}; -inputFacebookMini.prototype.fieldsToStorage=function(){console.log("MINI FICHE: FIELDS TO STORAGE");for(var a=$$('[data-sublink="facebook"] article.mini-relation-panel .mini-fiche-relation'),b=0;b MINI UPDATE");c={uid:parseInt(c.uid),sexe:c.sexe,age:c.age,studies:c.studies,reltype:c.reltype, -reltypeSpecial:c.reltypeSpecial,loc:c.loc,hash:e};c.valid=this.check(c);0 FICHE UPDATE"),c.timestamp=Date.now());lsi.set("f_mini-fiches",c.uid,c)}}}; +inputFacebookMini.prototype.fieldsToStorage=function(){console.log("MINI FICHE: FIELDS TO STORAGE");for(var a=$$('[data-sublink="facebook"] article.mini-relation-panel .mini-fiche-relation'),b=0;b MINI UPDATE");c={uid:parseInt(c.uid),sexe:c.sexe,age:c.age,studies:c.studies,reltype:c.reltype, +reltypeSpecial:c.reltypeSpecial,loc:c.loc,hash:d};c.valid=this.check(c);0 FICHE UPDATE"),c.timestamp=Date.now());lsi.set("f_mini-fiches",c.uid,c)}}}; inputFacebookMini.prototype.add=function(a){console.log("MINI FICHE: ADD");if(null==a||null==a.uid)return!1;a.age=null!=a.age?a.age:this.defaultData.age;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial:this.defaultData.reltypeSpecial;a.loc=null!=a.loc?a.loc:this.defaultData.loc;var b=lsi.get("f_contacts",a.uid);if(!1===b)return!1; -this.container.innerHTML+=fMiniFicheBuilder.build({name:readableName(b.username,b.firstname,b.lastname),countcall:b.countcall,countsms:b.countsms,uid:a.uid,reltypespecial:a.reltypeSpecial});b=$('[data-sublink="facebook"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+ -'"] ~ h5>span>select[data-name="age"]>option[value="'+a.age+'"]');null!=b&&b.setAttribute("selected","selected");for(var c=$$('[data-sublink="facebook"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]'),b=0;binput[type="radio"][data-name="reltype"]'); -for(b=0;binput[type="radio"][data-name="loc"]');for(b=0;bspan>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+ +a.age+'"]');null!=b&&b.setAttribute("selected","selected");for(var c=$$('[data-sublink="facebook"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]'),b=0;binput[type="radio"][data-name="reltype"]');for(b=0;binput[type="radio"][data-name="loc"]');for(b=0;b span.active'),c=0;c span.active'),c=0;c'+ ++b+"");for(c in a)isNaN(c)||(b=$('[data-sublink="facebook"] #f_nav-mini [data-n="'+a[c].uid+'"]'),null!=b&&(!0===a[c].valid?b.addClass("done"):b.remClass("done")));this.nav($('[data-sublink="facebook"] #f_nav-mini [data-n="'+this.selected+'"]'))}; inputFacebookMini.prototype.check=function(a){return""==a.sexe||"."==a.studies||"."==a.age||""==a.loc||""==a.reltype||"10"==a.reltype&&2>a.reltypeSpecial.length?!1:!0};inputFacebookMini.prototype.attach=function(a){console.log("MINI FICHE: ATTACH");lsi.createDataset("f_mini-fiches");this.storageToFields();this.handler=a;var b=this;this.nav_container.addEventListener("click",function(a){b.nav(a.target);b.handler(a.target)},!1)}; diff --git a/js/includes/input-facebook-mini.js b/js/includes/input-facebook-mini.js index 593cddf..e708ee2 100644 --- a/js/includes/input-facebook-mini.js +++ b/js/includes/input-facebook-mini.js @@ -130,7 +130,7 @@ inputFacebookMini.prototype.add = function(objectData){ // {2} Création physique // this.container.innerHTML += fMiniFicheBuilder.build({ - name: readableName(associatedContact.username, associatedContact.firstname, associatedContact.lastname), + name: associatedContact.username, countcall: associatedContact.countcall, countsms: associatedContact.countsms, uid: objectData.uid, @@ -240,7 +240,7 @@ inputFacebookMini.prototype.sync = function(){ } /* (5) Si le contact n'a aucun nominatif, on met inconnu par défaut, mais on ne l'affiche pas */ - var noName = contactData[key].username.length+contactData[key].firstname.length+contactData[key].lastname.length == 0; + var noName = contactData[key].username.length == 0; // On rajoute un '.' après pour dire qu'on affichera pas var uid = noName ? key.toString()+'-' : key; diff --git a/js/includes/input-facebook-subject-min.js b/js/includes/input-facebook-subject-min.js index 55af69b..8a669a2 100644 --- a/js/includes/input-facebook-subject-min.js +++ b/js/includes/input-facebook-subject-min.js @@ -1,4 +1,2 @@ -function inputFacebookSubject(a,b,c,d){this.username=a;this.firstname=b;this.lastname=c;this.store_button=d}inputFacebookSubject.prototype={store_button:this.store_button,username:this.username,firstname:this.firstname,lastname:this.lastname};inputFacebookSubject.prototype.check=function(){return 0 définit le conteneur et le bouton d'ajout =========================================================*/ -function inputFacebookSubject(iUsername, iFirstname, iLastname, store_button){ +function inputFacebookSubject(iUsername, store_button){ this.username = iUsername; - this.firstname = iFirstname; - this.lastname = iLastname; this.store_button = store_button; } @@ -12,9 +10,7 @@ function inputFacebookSubject(iUsername, iFirstname, iLastname, store_button){ =========================================================*/ inputFacebookSubject.prototype = { store_button: this.store_button, // Bouton d'ajout d'un formulaire - username: this.username, - firstname: this.firstname, - lastname: this.lastname + username: this.username }; @@ -22,7 +18,7 @@ inputFacebookSubject.prototype = { =========================================================*/ inputFacebookSubject.prototype.check = function(){ // On renvoie la validité du formulaire - return this.username.value.length+this.firstname.value.length+this.lastname.value.length > 0; + return this.username.value.length > 0; }; /* [3] Gestion de l'enregistrement des formulaires de contact @@ -35,9 +31,7 @@ inputFacebookSubject.prototype.fieldsToStorage = function(){ // {2} On récupère et met en forme les valeurs du deflater // var obj = { - username: this.username.value, - firstname: this.firstname.value, - lastname: this.lastname.value + username: this.username.value }; // {3} On enregistre les données dans le 'localStorage' // @@ -59,12 +53,10 @@ inputFacebookSubject.prototype.storageToFields = function(){ var subjectData = lsi.get('f_subject', 0); if( subjectData == null ) - subjectData = { username: '', firstname: '', lastname: '' }; + subjectData = { username: '' }; // {2} On restore les valeurs // this.username.value = subjectData.username; - this.firstname.value = subjectData.firstname; - this.lastname.value = subjectData.lastname; }; @@ -88,8 +80,6 @@ inputFacebookSubject.prototype.attach = function(){ /* (3) On attache un évènement de 'blur' sur chaque '' */ this.username.addEventListener( 'blur', fts, false); - this.firstname.addEventListener( 'blur', fts, false); - this.lastname.addEventListener( 'blur', fts, false); /* (4) On charge le sujet depuis la mémoire ('localStorage') */ this.storageToFields(); diff --git a/js/includes/input-html-facebook-data-min.js b/js/includes/input-html-facebook-data-min.js index 24df2ef..d275f9b 100644 --- a/js/includes/input-html-facebook-data-min.js +++ b/js/includes/input-html-facebook-data-min.js @@ -1,3 +1,2 @@ -var fContactBuilder=new HTMLBuilder;fContactBuilder.setLayout("

\n\t\n\t \n\t \n\t \n\t \n\t \n\t\n

\n\n"); -var fMiniFicheBuilder=new HTMLBuilder;fMiniFicheBuilder.setLayout("
\n\t\n\t\n\t

@name

\n\t
\n\t\t\n\t\t   \n\t
\n\t
\n\t\t\n\t
\n\t
\n\t\t\n\t
\n\t

Type de relation

\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t

O\u00f9 habite t-elle/il\u00a0?

\n\t
\n\t\t\u00c0 combien de temps est-ce de chez vous ?
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n
"); +var fContactBuilder=new HTMLBuilder;fContactBuilder.setLayout("

\n\t\n\t \n\t\n

\n\n");var fMiniFicheBuilder=new HTMLBuilder;fMiniFicheBuilder.setLayout("
\n\t\n\t\n\t

@name

\n\t
\n\t\t\n\t\t   \n\t
\n\t
\n\t\t\n\t
\n\t
\n\t\t\n\t
\n\t

Type de relation

\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t

O\u00f9 habite t-elle/il\u00a0?

\n\t
\n\t\t\u00c0 combien de temps est-ce de chez vous ?
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n
"); var fFicheBuilder=new HTMLBuilder;fFicheBuilder.setLayout("
\n\t\n\t\n\t

@name

\n\t
\n\t\t\n\t\t   \n\t
\n\t
\n\t\t\n\t
\n\t
\n\t\t\n\t
\n\t
\n\t\tSituation familiale:
\n\t\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   \n\t
\n\t
\n\t\t\n\t
\n\t

Type de relation

\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t

O\u00f9 habite t-elle/il\u00a0?

\n\t
\n\t\t\n\t\t
\n\t
\n\t
\n\t\tSi Toulouse : \n\t
\n\t
\n\t\t\u00c0 combien de temps est-ce de chez vous ?
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t
\n\t\tDepuis quand connaissez-vous cette personne ?

\n\t\tmois\n\t\tet    ans.\n\t
\n\t

Contexte de rencontre

\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t

Avec quelle fr\u00e9quence discutez-vous avec cette personne\u00a0?

\n\t
\n\t\tFace \u00e0 face
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tT\u00e9l\u00e9phone ou skype et \u00e9quivalent
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tSMS, et \u00e9quivalents
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tCourrier \u00e9lectronique
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tFacebook ou autre r\u00e9seau social
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t

Comment \u00eates-vous \u00ab\u00a0connect\u00e9\u00a0\u00bb \u00e0 cette personne\u00a0?

\n\t
\n\t\tSes coordonn\u00e9es sont dans votre carnet d\u2019adresse
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tSon num\u00e9ro de mobile est enregistr\u00e9 sur votre mobile (ou vous-m\u00eames \u00eates sur le sien)
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tElle figure parmi vos amis facebook
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tElle figure parmi vos amis facebook et vous interagissez avec elle sur ce dispositif r\u00e9guli\u00e8rement
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tVous le suivez sur Twitter
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tVous communiquez avec cette personne sur Twitter
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tVous communiquez dans autre r\u00e9seau social : \n\t
\n\t
\n\t\tVous communiquez dans un autre dispositif (blogs, jeu vid\u00e9o ou autre) : \n\t
\n
\n"); diff --git a/js/includes/input-html-facebook-data.js b/js/includes/input-html-facebook-data.js index 2967713..c9ab1f8 100644 --- a/js/includes/input-html-facebook-data.js +++ b/js/includes/input-html-facebook-data.js @@ -8,10 +8,6 @@ fContactBuilder.setLayout( "\t\n"+ "\t \n"+ - "\t \n"+ - "\t \n"+ - "\t \n"+ - "\t \n"+ "\t\n"+ "\n\n"); diff --git a/js/includes/input-html-phone-data-min.js b/js/includes/input-html-phone-data-min.js index e691368..ce11ee2 100644 --- a/js/includes/input-html-phone-data-min.js +++ b/js/includes/input-html-phone-data-min.js @@ -1,3 +1,3 @@ -var pContactBuilder=new HTMLBuilder;pContactBuilder.setLayout("

\n\t\n\t\n\t\n\t\n\t\n\t \n\t \n\t \n\t \n\t \n\t \n\t\n

\n\n"); +var pContactBuilder=new HTMLBuilder;pContactBuilder.setLayout("

\n\t\n\t\n\t\n\t\n\t\n\t \n\t \n\t\n

\n\n"); var pMiniFicheBuilder=new HTMLBuilder;pMiniFicheBuilder.setLayout("
\n\t\n\t\n\t

@name

\n\t
\t\t@countcall appels\t
\t
\t\t@countsms sms\t
\t
\n\t\t\n\t\t   \n\t
\n\t
\n\t\t\n\t
\n\t
\n\t\t\n\t
\n\t

Type de relation

\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t

O\u00f9 habite t-elle/il\u00a0?

\n\t
\n\t\t\u00c0 combien de temps est-ce de chez vous ?
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n
"); var pFicheBuilder=new HTMLBuilder;pFicheBuilder.setLayout("
\n\t\n\t\n\t

@name

\n\t
\t\t@countcall appels\t
\t
\t\t@countsms sms\t
\t
\n\t\t\n\t\t   \n\t
\n\t
\n\t\t\n\t
\n\t
\n\t\t\n\t
\n\t
\n\t\tSituation familiale:
\n\t\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   \n\t
\n\t
\n\t\t\n\t
\n\t

Type de relation

\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t

O\u00f9 habite t-elle/il\u00a0?

\n\t
\n\t\t\n\t\t
\n\t
\n\t
\n\t\tSi Toulouse : \n\t
\n\t
\n\t\t\u00c0 combien de temps est-ce de chez vous ?
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t
\n\t\tDepuis quand connaissez-vous cette personne ?

\n\t\tmois\n\t\tet    ans.\n\t
\n\t

Contexte de rencontre

\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t
\n\t\t   
\n\t\t   
\n\t\t   
\n\t
\n\t

Avec quelle fr\u00e9quence discutez-vous avec cette personne\u00a0?

\n\t
\n\t\tFace \u00e0 face
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tT\u00e9l\u00e9phone ou skype et \u00e9quivalent
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tSMS, et \u00e9quivalents
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tCourrier \u00e9lectronique
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t
\n\t\tFacebook ou autre r\u00e9seau social
\n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t\t   \n\t
\n\t

Comment \u00eates-vous \u00ab\u00a0connect\u00e9\u00a0\u00bb \u00e0 cette personne\u00a0?

\n\t
\n\t\tSes coordonn\u00e9es sont dans votre carnet d\u2019adresse
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tSon num\u00e9ro de mobile est enregistr\u00e9 sur votre mobile (ou vous-m\u00eames \u00eates sur le sien)
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tElle figure parmi vos amis facebook
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tElle figure parmi vos amis facebook et vous interagissez avec elle sur ce dispositif r\u00e9guli\u00e8rement
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tVous le suivez sur Twitter
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tVous communiquez avec cette personne sur Twitter
\n\t\t   \n\t\t   \n\t
\n\t
\n\t\tVous communiquez dans autre r\u00e9seau social : \n\t
\n\t
\n\t\tVous communiquez dans un autre dispositif (blogs, jeu vid\u00e9o ou autre) : \n\t
\n
\n"); diff --git a/js/includes/input-html-phone-data.js b/js/includes/input-html-phone-data.js index 1627322..aee5f3d 100644 --- a/js/includes/input-html-phone-data.js +++ b/js/includes/input-html-phone-data.js @@ -14,10 +14,6 @@ pContactBuilder.setLayout( "\t \n"+ "\t \n"+ - "\t \n"+ - "\t \n"+ - "\t \n"+ - "\t \n"+ "\t\n"+ "\n\n"); diff --git a/js/includes/input-phone-contact-min.js b/js/includes/input-phone-contact-min.js index 0689cf2..62f69fc 100644 --- a/js/includes/input-phone-contact-min.js +++ b/js/includes/input-phone-contact-min.js @@ -1,8 +1,8 @@ -function inputPhoneContact(a,b){this.container=a;this.nav_container=b}inputPhoneContact.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null};inputPhoneContact.prototype.check=function(a){var b=0=a.length&&this.add({uid:a.length});this.updateNavBar()}; +function inputPhoneContact(a,b){this.container=a;this.nav_container=b}inputPhoneContact.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null};inputPhoneContact.prototype.check=function(a){return 0<=a.username.length}; +inputPhoneContact.prototype.fieldsToStorage=function(){console.log("CONTACTS: FIELDS TO STORAGE");for(var a=$$('[data-sublink="phone"] article.contact-panel .new-contact'),b=0;b=a.length&&this.add({uid:a.length});this.updateNavBar()}; inputPhoneContact.prototype.nav=function(a){if(null==a||!1===a.getData("n")||isNaN(a.getData("n"))||"p_nav-contact"!=a.parentNode.id)return!1;for(var b=$$('[data-sublink="phone"] #p_nav-contact > span.active'),c=0;c'+(1+b/10)+""}this.nav($('[data-sublink="phone"] #p_nav-contact [data-n="'+this.selected+'"]'))}; inputPhoneContact.prototype.attach=function(a){console.log("CONTACTS: ATTACH");lsi.createDataset("p_contacts");this.storageToFields();this.handler=a;var b=this;this.nav_container.addEventListener("click",function(a){b.nav(a.target);b.handler(a.target)},!1)}; diff --git a/js/includes/input-phone-contact.js b/js/includes/input-phone-contact.js index de420b3..1c85a03 100644 --- a/js/includes/input-phone-contact.js +++ b/js/includes/input-phone-contact.js @@ -19,13 +19,9 @@ inputPhoneContact.prototype = { /* [2] Vérification des données d'un contact =========================================================*/ inputPhoneContact.prototype.check = function(deflated){ - /* (1) Le numéro n'est pas vide */ - var validForm = deflated.number.length > 0; - /* (2) ET le pseudo et/ou le prénom et/ou le nom n'est pas vide */ - validForm = validForm && deflated.username.length+deflated.firstname.length+deflated.lastname.length > 0; + /* On retourne la validité du formulaire */ + return deflated.username.length >= 0; - /* (3) On retourne la validité du formulaire */ - return validForm; } @@ -47,13 +43,12 @@ inputPhoneContact.prototype.fieldsToStorage = function(){ // Si le formulaire n'est pas valide, on ne l'enregistre pas if( !this.check(deflated) ) continue; + // {4} On récupère et met en forme les valeurs du deflater // var obj = { uid: parseInt(deflated.uid), number: deflated.number, username: deflated.username, - firstname: deflated.firstname, - lastname: deflated.lastname, call: parseInt(deflated.call), sms: parseInt(deflated.sms), @@ -66,7 +61,7 @@ inputPhoneContact.prototype.fieldsToStorage = function(){ obj.hash = crc32( JSON.stringify(obj) ); // {6} On enregistre les données dans le 'localStorage' // - lsi.set('p_p_contacts', parseInt(deflated.uid), obj); + lsi.set('p_contacts', parseInt(deflated.uid), obj); } @@ -97,8 +92,6 @@ inputPhoneContact.prototype.add = function(objectData){ // {0} On formatte l'object // objectData.number = (objectData.number != null) ? objectData.number : ''; objectData.username = (objectData.username != null) ? objectData.username : ''; - objectData.firstname = (objectData.firstname != null) ? objectData.firstname : ''; - objectData.lastname = (objectData.lastname != null) ? objectData.lastname : ''; objectData.call = (objectData.call != null) ? objectData.call : -1; objectData.sms = (objectData.sms != null) ? objectData.sms : -1; objectData.countcall = (objectData.countcall != null) ? objectData.countcall : 0; diff --git a/js/includes/input-phone-fiche-min.js b/js/includes/input-phone-fiche-min.js index 02682c6..cb1a8e6 100644 --- a/js/includes/input-phone-fiche-min.js +++ b/js/includes/input-phone-fiche-min.js @@ -4,8 +4,8 @@ city:c.city,quartier:c.quartier,cp:c.cp,loc:c.loc,duration:c.duration,context:c. inputPhoneFiche.prototype.add=function(a){console.log("FICHE: ADD");if(null==a.uid||isNaN(a.uid)||null==a.contact||isNaN(a.contact))return!1;a.city=null!=a.city?a.city:this.defaultData.city;a.quartier=null!=a.quartier?a.quartier:this.defaultData.quartier;a.cp=null!=a.cp?a.cp:this.defaultData.cp;a.duration[0]=null!=a.duration[0]?a.duration[0]:this.defaultData.duration[0];a.duration[1]=null!=a.duration[1]?a.duration[1]:this.defaultData.duration[1];a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial: this.defaultData.reltypeSpecial;a.contextSpecial[0]=null!=a.contextSpecial[0]?a.contextSpecial[0]:this.defaultData.contextSpecial[0];a.contextSpecial[1]=null!=a.contextSpecial[1]?a.contextSpecial[1]:this.defaultData.contextSpecial[1];a.contextSpecial[2]=null!=a.contextSpecial[2]?a.contextSpecial[2]:this.defaultData.contextSpecial[2];a.connectSpecial[0]=null!=a.connectSpecial[0]?a.connectSpecial[0]:this.defaultData.connectSpecial[0];a.connectSpecial[1]=null!=a.connectSpecial[1]?a.connectSpecial[1]: this.defaultData.connectSpecial[1];a.job=null!=a.job?a.job:this.defaultData.job;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.age=null!=a.age?a.age:this.defaultData.age;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.famsit=null!=a.famsit?a.famsit:this.defaultData.famsit;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.loc=null!=a.loc?a.loc:this.defaultData.loc;a.context=null!=a.context?a.context:this.defaultData.context;a.freq=null!=a.freq?a.freq:this.defaultData.freq; -a.connect=null!=a.connect?a.connect:this.defaultData.connect;var b=lsi.get("p_contacts",a.contact);if(!1===b)return!1;this.container.innerHTML+=pFicheBuilder.build({name:readableName(b.username,b.firstname,b.lastname),countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],contextspecial2:a.contextSpecial[2], -connectspecial0:a.connectSpecial[0],connectspecial1:a.connectSpecial[1]});b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+ +a.connect=null!=a.connect?a.connect:this.defaultData.connect;var b=lsi.get("p_contacts",a.contact);if(!1===b)return!1;this.container.innerHTML+=pFicheBuilder.build({name:b.username,countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],contextspecial2:a.contextSpecial[2],connectspecial0:a.connectSpecial[0], +connectspecial1:a.connectSpecial[1]});b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+ a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+a.age+'"]');null!=b&&b.setAttribute("selected","selected");for(var c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]'),b=0;binput[type="radio"][data-name="famsit"]'); for(b=0;binput[type="radio"][data-name="reltype"]');for(b=0;binput[type="radio"][data-name="loc"]'); for(b=0;binput[type="radio"][data-name="context"]');for(b=0;binput[type="radio"][data-name="freq"]'); diff --git a/js/includes/input-phone-fiche.js b/js/includes/input-phone-fiche.js index beda9c7..22abb51 100644 --- a/js/includes/input-phone-fiche.js +++ b/js/includes/input-phone-fiche.js @@ -171,7 +171,7 @@ inputPhoneFiche.prototype.add = function(objectData){ // {5} Création physique // this.container.innerHTML += pFicheBuilder.build({ - name: readableName(associatedContact.username, associatedContact.firstname, associatedContact.lastname), + name: associatedContact.username, countcall: associatedContact.countcall, countsms: associatedContact.countsms, uid: objectData.uid, diff --git a/js/includes/input-phone-matrice-min.js b/js/includes/input-phone-matrice-min.js index 83e858c..9a2505c 100644 --- a/js/includes/input-phone-matrice-min.js +++ b/js/includes/input-phone-matrice-min.js @@ -1,5 +1,5 @@ function inputPhoneMatrice(a){this.container=a}inputPhoneMatrice.prototype={container:this.container}; inputPhoneMatrice.prototype.fieldsToStorage=function(){console.log("MATRICE: FIELDS TO STORAGE");var a=(new FormDeflater(this.container,["input"],["data-name"])).deflate();crc32(JSON.stringify(a));var d={},b;for(b in a)if(a[b]instanceof Array)for(var e in a[b])null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b][e]));else null!==a[b]&&(null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b])));lsi.set("p_matrice",0,d)}; -inputPhoneMatrice.prototype.storageToFields=function(){console.log("MATRICE: STORAGE TO FIELDS");var a=lsi["export"]("p_fiches"),d=lsi.get("p_matrice",0),b=lsi["export"]("p_contacts"),e=[],c;for(c in a)-1==e.indexOf(a[c].contact)&&e.push(a[c].contact);a="";for(c=0;c";0',a+=readableName(f.username,f.firstname,f.lastname),a+=""):a+="";for(var h=0;h"):h",a+=""):a+=""}a+=""}this.container.innerHTML=a+"
"}; +inputPhoneMatrice.prototype.storageToFields=function(){console.log("MATRICE: STORAGE TO FIELDS");var a=lsi["export"]("p_fiches"),d=lsi.get("p_matrice",0),b=lsi["export"]("p_contacts"),e=[],c;for(c in a)-1==e.indexOf(a[c].contact)&&e.push(a[c].contact);a="";for(c=0;c";0',a+=g.username,a+=""):a+="";for(var f=0;f",a+='', +a+=h.username,a+=""):f",a+=""):a+=""}a+=""}this.container.innerHTML=a+"
"}; inputPhoneMatrice.prototype.attach=function(){console.log("MATRICE: ATTACH");lsi.createDataset("p_matrice");this.storageToFields();var a=this;this.container.addEventListener("click",function(d){a.fieldsToStorage();a.storageToFields()},!1)}; diff --git a/js/includes/input-phone-matrice.js b/js/includes/input-phone-matrice.js index 6af8440..a797aaf 100644 --- a/js/includes/input-phone-matrice.js +++ b/js/includes/input-phone-matrice.js @@ -108,7 +108,7 @@ inputPhoneMatrice.prototype.storageToFields = function(){ if( A > 0 ){ // Noms sur la première ligne (abscisses) matrice_html += ''; - matrice_html += readableName(conA.username, conA.firstname, conA.lastname); + matrice_html += conA.username; matrice_html += ''; }else // Sinon, matrice_html += ''; @@ -121,7 +121,7 @@ inputPhoneMatrice.prototype.storageToFields = function(){ if( A == 0 ){ matrice_html += ''; matrice_html += ''; - matrice_html += readableName(conB.username, conB.firstname, conB.lastname), + matrice_html += conB.username; matrice_html += ''; // {4} Valeurs des relations (boutons) // diff --git a/js/includes/input-phone-mini-min.js b/js/includes/input-phone-mini-min.js index c88e6f8..3411eab 100644 --- a/js/includes/input-phone-mini-min.js +++ b/js/includes/input-phone-mini-min.js @@ -1,12 +1,12 @@ function inputPhoneMini(a,b){this.container=a;this.nav_container=b}inputPhoneMini.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null,defaultData:{sexe:"0",age:".",studies:".",loc:"0",reltype:"0",reltypeSpecial:"",timestamp:0,valid:!1}}; -inputPhoneMini.prototype.fieldsToStorage=function(){console.log("MINI FICHE: FIELDS TO STORAGE");for(var a=$$('[data-sublink="phone"] article.mini-relation-panel .mini-fiche-relation'),b=0;b MINI UPDATE");c={uid:parseInt(c.uid),sexe:c.sexe,age:c.age,studies:c.studies,reltype:c.reltype, -reltypeSpecial:c.reltypeSpecial,loc:c.loc,hash:e};c.valid=this.check(c);0 FICHE UPDATE"),c.timestamp=Date.now());lsi.set("p_mini-fiches",c.uid,c)}}}; +inputPhoneMini.prototype.fieldsToStorage=function(){console.log("MINI FICHE: FIELDS TO STORAGE");for(var a=$$('[data-sublink="phone"] article.mini-relation-panel .mini-fiche-relation'),b=0;b MINI UPDATE");c={uid:parseInt(c.uid),sexe:c.sexe,age:c.age,studies:c.studies,reltype:c.reltype, +reltypeSpecial:c.reltypeSpecial,loc:c.loc,hash:d};c.valid=this.check(c);0 FICHE UPDATE"),c.timestamp=Date.now());lsi.set("p_mini-fiches",c.uid,c)}}}; inputPhoneMini.prototype.add=function(a){console.log("MINI FICHE: ADD");if(null==a||null==a.uid)return!1;a.age=null!=a.age?a.age:this.defaultData.age;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial:this.defaultData.reltypeSpecial;a.loc=null!=a.loc?a.loc:this.defaultData.loc;var b=lsi.get("p_contacts",a.uid);if(!1===b)return!1; -this.container.innerHTML+=pMiniFicheBuilder.build({name:readableName(b.username,b.firstname,b.lastname),countcall:b.countcall,countsms:b.countsms,uid:a.uid,reltypespecial:a.reltypeSpecial});b=$('[data-sublink="phone"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+ +this.container.innerHTML+=pMiniFicheBuilder.build({name:b.username,countcall:b.countcall,countsms:b.countsms,uid:a.uid,reltypespecial:a.reltypeSpecial});b=$('[data-sublink="phone"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+ a.age+'"]');null!=b&&b.setAttribute("selected","selected");for(var c=$$('[data-sublink="phone"] article.mini-fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]'),b=0;binput[type="radio"][data-name="reltype"]');for(b=0;binput[type="radio"][data-name="loc"]');for(b=0;b span.active'),c=0;c span.active'),c=0;c'+ ++b+"");for(c in a)isNaN(c)||(b=$('[data-sublink="phone"] #p_nav-mini [data-n="'+a[c].uid+'"]'),null!=b&&(!0===a[c].valid?b.addClass("done"):b.remClass("done")));this.nav($('[data-sublink="phone"] #p_nav-mini [data-n="'+this.selected+'"]'))}; inputPhoneMini.prototype.check=function(a){return""==a.sexe||"."==a.studies||"."==a.age||""==a.loc||""==a.reltype||"10"==a.reltype&&2>a.reltypeSpecial.length?!1:!0};inputPhoneMini.prototype.attach=function(a){console.log("MINI FICHE: ATTACH");lsi.createDataset("p_mini-fiches");this.storageToFields();this.handler=a;var b=this;this.nav_container.addEventListener("click",function(a){b.nav(a.target);b.handler(a.target)},!1)}; diff --git a/js/includes/input-phone-mini.js b/js/includes/input-phone-mini.js index 70ec23f..7965229 100644 --- a/js/includes/input-phone-mini.js +++ b/js/includes/input-phone-mini.js @@ -130,7 +130,7 @@ inputPhoneMini.prototype.add = function(objectData){ // {2} Création physique // this.container.innerHTML += pMiniFicheBuilder.build({ - name: readableName(associatedContact.username, associatedContact.firstname, associatedContact.lastname), + name: associatedContact.username, countcall: associatedContact.countcall, countsms: associatedContact.countsms, uid: objectData.uid, @@ -240,7 +240,7 @@ inputPhoneMini.prototype.sync = function(){ } /* (5) Si le contact n'a aucun nominatif, on met inconnu par défaut, mais on ne l'affiche pas */ - var noName = contactData[key].username.length+contactData[key].firstname.length+contactData[key].lastname.length == 0; + var noName = contactData[key].username.length == 0; // On rajoute un '.' après pour dire qu'on affichera pas var uid = noName ? key.toString()+'-' : key; diff --git a/js/includes/input-phone-subject-min.js b/js/includes/input-phone-subject-min.js index 22e212c..975e646 100644 --- a/js/includes/input-phone-subject-min.js +++ b/js/includes/input-phone-subject-min.js @@ -1,4 +1,3 @@ -function inputPhoneSubject(a,b,c,d,e,f){this.tmp_id=a;this.number=b;this.username=c;this.firstname=d;this.lastname=e;this.store_button=f}inputPhoneSubject.prototype={store_button:this.store_button,tmp_id:this.tmp_id,number:this.number,username:this.username,firstname:this.firstname,lastname:this.lastname};inputPhoneSubject.prototype.check=function(){var a=0 définit le conteneur et le bouton d'ajout =========================================================*/ -function inputPhoneSubject(iTmpId, iNumber, iUsername, iFirstname, iLastname, store_button){ +function inputPhoneSubject(iTmpId, iNumber, iUsername, store_button){ this.tmp_id = iTmpId; this.number = iNumber; this.username = iUsername; - this.firstname = iFirstname; - this.lastname = iLastname; this.store_button = store_button; } @@ -16,9 +14,7 @@ inputPhoneSubject.prototype = { store_button: this.store_button, // Bouton d'ajout d'un formulaire tmp_id: this.tmp_id, number: this.number, - username: this.username, - firstname: this.firstname, - lastname: this.lastname + username: this.username }; @@ -26,13 +22,7 @@ inputPhoneSubject.prototype = { =========================================================*/ inputPhoneSubject.prototype.check = function(){ /* (1) Le numéro n'est pas vide */ - var validForm = this.number.value.length > 0; - - /* (2) ET le pseudo et/ou le prénom et/ou le nom n'est pas vide */ - validForm = validForm && this.username.value.length+this.firstname.value.length+this.lastname.value.length > 0; - - // On renvoie la validité du formulaire - return validForm; + return this.number.value.length > 0 && this.username.value.length> 0; }; /* [3] Gestion de l'enregistrement des formulaires de contact @@ -47,9 +37,7 @@ inputPhoneSubject.prototype.fieldsToStorage = function(){ var obj = { tmp_id: this.tmp_id.value, number: this.number.value, - username: this.username.value, - firstname: this.firstname.value, - lastname: this.lastname.value + username: this.username.value }; // {3} On enregistre les données dans le 'localStorage' // @@ -71,14 +59,12 @@ inputPhoneSubject.prototype.storageToFields = function(){ var subjectData = lsi.get('p_subject', 0); if( subjectData == null ) - subjectData = { tmp_id: '', number: '', username: '', firstname: '', lastname: '' }; + subjectData = { tmp_id: '', number: '', username: '' }; // {2} On restore les valeurs // this.tmp_id.value = subjectData.tmp_id; this.number.value = subjectData.number; this.username.value = subjectData.username; - this.firstname.value = subjectData.firstname; - this.lastname.value = subjectData.lastname; }; @@ -101,10 +87,8 @@ inputPhoneSubject.prototype.attach = function(){ this.store_button.addEventListener('click', fts, false); /* (3) On attache un évènement de 'blur' sur chaque '' */ - this.number.addEventListener( 'blur', fts, false); - this.username.addEventListener( 'blur', fts, false); - this.firstname.addEventListener( 'blur', fts, false); - this.lastname.addEventListener( 'blur', fts, false); + this.number.addEventListener( 'blur', fts, false); + this.username.addEventListener( 'blur', fts, false); /* (4) On charge le sujet depuis la mémoire ('localStorage') */ this.storageToFields(); diff --git a/manager/module/input.php b/manager/module/input.php index 850f38e..368bd58 100644 --- a/manager/module/input.php +++ b/manager/module/input.php @@ -10,47 +10,6 @@ class input{ - - /* AFFICHE UN NOM EXPLICITE A PARTIR DE @u username, @f firstname, et @l lastname - * - */ - private static function readableName($u, $f, $l){ - /* (1) On calcule les tailles des chaines */ - $ul = strlen($u); - $fl = strlen($f); - $ll = strlen($l); - - /* (2) Si @username n'est pas vide */ - if( $ul > 0 ){ - - /* (3) Si @username+(@firstname et/ou @lastname) -> username (firstname lastname) */ - if( $fl+$ll > 0 ) - return $u.' ('.trim($f.' '.$l).')'; - - /* (4) Si @username uniquement -> username */ - else - return $u; - - /* (5) Si pas @username */ - }else{ - - /* (6) Si @firstname et/ou @lastname -> firstname lastname*/ - if( $fl+$ll > 0 ) - return trim($f.' '.$l); - - /* (7) Si rien -> Inconnu */ - else - return 'Inconnu'; - - } - } - - - - - - - /* TRAITE LES DONNÉES D'UN FORMULAIRE DE TYPE TÉLÉPHONIQUE * * @subject Tableau contenant les données du sujet @@ -123,7 +82,7 @@ =========================================================*/ $file['subject'] = array( 'id' => $offset + $subject_id, - 'name' => self::readableName($subject['username'], $subject['firstname'], $subject['lastname']) + 'name' => $subject['username'] ); @@ -141,7 +100,7 @@ // On remplit les données qui iront dans le fichier pour ce contact array_push($file['contacts'], array( 'id' => $offset + $miniData['uid'], - 'name' => self::readableName($contact['username'], $contact['firstname'], $contact['lastname']), + 'name' => $contact['username'], 'sexe' => $miniData['sexe'], 'age' => $miniData['age'], 'studies1' => $miniData['studies'], @@ -164,7 +123,7 @@ // On remplit les données qui iront dans le fichier pour ce contact array_push($file['contacts'], array( 'id' => $offset + $ficheData['uid'], - 'name' => self::readableName($contact['username'], $contact['firstname'], $contact['lastname']), + 'name' => $contact['username'], 'sexe' => $ficheData['sexe'], 'age' => $ficheData['age'], 'studies2' => $ficheData['studies'], @@ -301,7 +260,7 @@ =========================================================*/ $file['subject'] = array( 'id' => $offset + $subject_id, - 'name' => self::readableName($subject['username'], $subject['firstname'], $subject['lastname']) + 'name' => $subject['username'] ); @@ -319,7 +278,7 @@ // On remplit les données qui iront dans le fichier pour ce contact array_push($file['contacts'], array( 'id' => $offset + $miniData['uid'], - 'name' => self::readableName($contact['username'], $contact['firstname'], $contact['lastname']), + 'name' => $contact['username'], 'sexe' => $miniData['sexe'], 'age' => $miniData['age'], 'studies1' => $miniData['studies'], @@ -342,7 +301,7 @@ // On remplit les données qui iront dans le fichier pour ce contact array_push($file['contacts'], array( 'id' => $offset + $ficheData['uid'], - 'name' => self::readableName($contact['username'], $contact['firstname'], $contact['lastname']), + 'name' => $contact['username'], 'sexe' => $ficheData['sexe'], 'age' => $ficheData['age'], 'studies2' => $ficheData['studies'], diff --git a/manager/module/upload.php b/manager/module/upload.php index 4dcc009..6c36338 100644 --- a/manager/module/upload.php +++ b/manager/module/upload.php @@ -13,8 +13,8 @@ /* RENVOIE LE CHEMIN D'UN fichier * - * @prefix Préfixe (dossier parent) du fichier - * @extension Extension du fichier + * @prefix Préfixe (dossier parent) du fichier + * @extension Extension du fichier * * @return response Renvoie le chemin du fichier, ainsi qu'une erreur de 'ManagerError' * @@ -24,41 +24,41 @@ if( !connected() ) return array( 'error' => ManagerError::PermissionError ); /* [1] Chargement du fichier de config - =========================================================*/ - /* (1) On récupère le fichier */ - $uploadAuth = ResourceDispatcher::getResource('f/json/upload-auth/conf'); + =========================================================*/ + /* (1) On récupère le fichier */ + $uploadAuth = ResourceDispatcher::getResource('f/json/upload-auth/conf'); - /* (2) Si une erreur pour le fichier de conf */ - if( $uploadAuth === false ) - return array( 'error' => ManagerError::UnreachableResource ); + /* (2) Si une erreur pour le fichier de conf */ + if( $uploadAuth === false ) + return array( 'error' => ManagerError::UnreachableResource ); - /* (3) On récupère la config sous forme de tableau */ - $uploadAuth = json_decode( $uploadAuth, true ); + /* (3) On récupère la config sous forme de tableau */ + $uploadAuth = json_decode( $uploadAuth, true ); - /* (4) Si erreur de PARSAGE */ - if( !is_array($uploadAuth) ) - return array( 'error' => ManagerError::ParsingFailed ); + /* (4) Si erreur de PARSAGE */ + if( !is_array($uploadAuth) ) + return array( 'error' => ManagerError::ParsingFailed ); - /* [2] Vérification du préfixe - =========================================================*/ - // Si le préfixe n'est pas dans la config -> erreur - if( !in_array($prefix, $uploadAuth['directories']) ) - return array( 'error' => ManagerError::UploadError ); + /* [2] Vérification du préfixe + =========================================================*/ + // Si le préfixe n'est pas dans la config -> erreur + if( !in_array($prefix, $uploadAuth['directories']) ) + return array( 'error' => ManagerError::UploadError ); - /* [3] Construction du chemin - =========================================================*/ - /* (1) On construit le chemin */ - $path = __ROOT__.$uploadAuth['root'].'/'.$prefix.'/'; + /* [3] Construction du chemin + =========================================================*/ + /* (1) On construit le chemin */ + $path = __ROOT__.$uploadAuth['root'].'/'.$prefix.'/'; - /* (2) On crée le dossier s'il n'existe pas */ - if ( !file_exists($path) ) mkdir($path, 0775, true); + /* (2) On crée le dossier s'il n'existe pas */ + if ( !file_exists($path) ) mkdir($path, 0775, true); - /* (3) On construit le nom du fichier */ - $fileName = $_SESSION['username'].'.'.$extension; + /* (3) On construit le nom du fichier */ + $fileName = $_SESSION['username'].'.'.$extension; - /* (4) On se place dans le dossier */ - chdir( $path ); + /* (4) On se place dans le dossier */ + chdir( $path ); /* [4] Gestion du retour @@ -73,17 +73,17 @@ - /* EFFECTUE UN UPLOAD D'UN fichier - * - * @prefix Préfixe (dossier parent) du fichier - * @extension Extension du fichier - * @file Pointeur vers $_FILES[''] - * @tester Fonction qui renvoie TRUE si le format est correct (en prenant le contenu du fichier en paramètre) - * - * @return error Retourne l'erreur attestant de l'état de l'upload - * - */ - private static function simpleFile($prefix, $extension, $file, $tester){ + /* EFFECTUE UN UPLOAD D'UN fichier + * + * @prefix Préfixe (dossier parent) du fichier + * @extension Extension du fichier + * @file Pointeur vers $_FILES[''] + * @tester Fonction qui renvoie TRUE si le format est correct (en prenant le contenu du fichier en paramètre) + * + * @return error Retourne l'erreur attestant de l'état de l'upload + * + */ + private static function simpleFile($prefix, $extension, $file, $tester){ // Si on est pas connecté, on retourne une erreur -> impossible via token if( !connected() ) return array( 'error' => ManagerError::PermissionError ); @@ -111,18 +111,18 @@ } - /* [3] Création du fichier (temporaire->permanent) - =========================================================*/ + /* [3] Création du fichier (temporaire->permanent) + =========================================================*/ /* (1) On déplace le fichier avec le nom formel */ - if( move_uploaded_file($file['tmp_name'], $pathResponse['path']) ){ - // on modifie les droits du fichier - chmod($pathResponse['path'], 0774); + if( move_uploaded_file($file['tmp_name'], $pathResponse['path']) ){ + // on modifie les droits du fichier + chmod($pathResponse['path'], 0774); return ManagerError::Success; /* (2) Si une erreur occure -> 'UploadError' */ - }else - return ManagerError::UploadError; - } + }else + return ManagerError::UploadError; + } @@ -136,17 +136,17 @@ - /* IMPORT D'UN JOURNAL D'APPEL - * - * @file Pointeur vers $_FILES[''] - * - */ - public static function call_log($params){ - extract($params); + /* IMPORT D'UN JOURNAL D'APPEL + * + * @file Pointeur vers $_FILES[''] + * + */ + public static function call_log($params){ + extract($params); /* [1] Gestion de l'upload du fichier et de la vžérification du format =========================================================*/ - $uploadError = self::simpleFile( + $uploadError = self::simpleFile( 'call_log', // nom du dossier d'upload 'xml', // format du fichier $file, // Fichier lui-même @@ -195,7 +195,7 @@ array( 'ModuleError' => $response->error ), $response->getAll() ); - } + } @@ -216,17 +216,17 @@ - /* IMPORT D'UNE SAUVEGARDE DE FORMULAIRE LOCAL - * - * @file Pointeur vers $_FILES[''] - * - */ - public static function local_data($params){ - extract($params); + /* IMPORT D'UNE SAUVEGARDE DE FORMULAIRE LOCAL + * + * @file Pointeur vers $_FILES[''] + * + */ + public static function local_data($params){ + extract($params); /* [1] Upload et vérifiaction du format du fichier =========================================================*/ - $uploadError = self::simpleFile( + $uploadError = self::simpleFile( 'local_data', // nom du dossier d'upload 'json', // format du fichier $file, // Fichier lui-même @@ -252,9 +252,6 @@ /* (3) Vérification du sujet */ $checkSubject = isset($json['subject']['tmp_id']) && ( is_string($json['subject']['tmp_id']) || is_null($json['subject']['tmp_id']) ); $checkSubject = $checkSubject && isset($json['subject']['username']) && is_string($json['subject']['username']); - $checkSubject = $checkSubject && isset($json['subject']['firstname']) && is_string($json['subject']['firstname']); - $checkSubject = $checkSubject && isset($json['subject']['lastname']) && is_string($json['subject']['lastname']); - $checkSubject = $checkSubject && isset($json['subject']['number']) && is_string($json['subject']['number']); // Erreur des attributs du sujet incorrects ou manquants if( !$checkSubject ) @@ -265,9 +262,6 @@ foreach($json['contacts'] as $contact){ $checkContact = isset($contact['uid']) && is_numeric($contact['uid']); $checkContact = $checkContact && isset($contact['username']) && is_string($contact['username']); - $checkContact = $checkContact && isset($contact['firstname']) && is_string($contact['firstname']); - $checkContact = $checkContact && isset($contact['lastname']) && is_string($contact['lastname']); - $checkContact = $checkContact && isset($contact['number']) && ( is_numeric($contact['number']) || is_string($contact['number']) ); $checkContact = $checkContact && isset($contact['sms']) && is_numeric($contact['sms']); $checkContact = $checkContact && isset($contact['call']) && is_numeric($contact['call']); $checkContact = $checkContact && isset($contact['countsms']) && is_numeric($contact['countsms']); @@ -367,7 +361,7 @@ 'ModuleError' => ManagerError::Success, 'local_data' => $json ); - } + } } diff --git a/src/upload/local_data/xdrm.json b/src/upload/local_data/xdrm.json index d132bc4..780b280 100755 --- a/src/upload/local_data/xdrm.json +++ b/src/upload/local_data/xdrm.json @@ -1 +1 @@ -{"subject":{"tmp_id":"bcc6892693dc297179ad2b142c66ee6b17aff9f6","number":"06 69 05 19 10","username":"Adri","firstname":"","lastname":""},"contacts":{"0":{"uid":0,"number":"0603770222","username":"MUSHI","firstname":"","lastname":"","call":5,"sms":4,"countcall":28,"countsms":12,"hash":2197429458},"1":{"uid":1,"number":"0675373258","username":"FLO","firstname":"","lastname":"","call":0,"sms":0,"countcall":244,"countsms":96,"hash":252212774},"2":{"uid":2,"number":"0953681472","username":"","firstname":"4","lastname":"FANTA","call":4,"sms":-1,"countcall":30,"countsms":0,"hash":2746779927},"3":{"uid":3,"number":"0672447830","username":"","firstname":"Virgitti","lastname":"anne ","call":2,"sms":1,"countcall":46,"countsms":54,"hash":2368169585},"4":{"uid":4,"number":"123","username":"","firstname":"","lastname":"","countsms":0,"countcall":38,"call":3,"sms":-1},"5":{"uid":5,"number":"0689529865","username":"3id","firstname":"","lastname":"","call":-1,"sms":-1,"countcall":1,"countsms":0,"hash":4277005517},"6":{"uid":6,"number":"0603378605","username":"Genasia","firstname":"","lastname":"","call":-1,"sms":-1,"countcall":7,"countsms":0,"hash":2914293926},"7":{"uid":7,"number":"0664870429","username":"JJB","firstname":"","lastname":"","call":-1,"sms":-1,"countcall":8,"countsms":0,"hash":2237167237},"8":{"uid":8,"number":"0954226501","username":"","firstname":"FIX","lastname":"FLO","call":-1,"sms":-1,"countcall":2,"countsms":0,"hash":3256350915},"9":{"uid":9,"number":"0624492953","username":"","firstname":"Plombier","lastname":"Folus 2","call":9,"sms":-1,"countcall":10,"countsms":0,"hash":234303420},"10":{"uid":10,"number":"0561472615","username":"","firstname":"","lastname":"","countsms":0,"countcall":3,"call":-1,"sms":-1},"11":{"uid":11,"number":"0610071116","username":"MAMA","firstname":"","lastname":"","countsms":5,"countcall":11,"call":8,"sms":5},"12":{"uid":12,"number":"0682914384","username":"","firstname":"Freddo","lastname":"Ariege","countsms":0,"countcall":6,"call":-1,"sms":-1},"13":{"uid":13,"number":"0562575178","username":"","firstname":"Flo","lastname":"Dga","countsms":0,"countcall":1,"call":-1,"sms":-1},"14":{"uid":14,"number":"0290871240","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"15":{"uid":15,"number":"0686330728","username":"A2","firstname":"","lastname":"","countsms":0,"countcall":18,"call":6,"sms":-1},"16":{"uid":16,"number":"0662665764","username":"","firstname":"Mathieu","lastname":"kolok ","countsms":1,"countcall":50,"call":1,"sms":-1},"17":{"uid":17,"number":"0698292616","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"18":{"uid":18,"number":"0661263732","username":"","firstname":"Tony","lastname":"Caen Tlse","countsms":0,"countcall":2,"call":-1,"sms":-1},"19":{"uid":19,"number":"0667219231","username":"FILOU","firstname":"","lastname":"","countsms":0,"countcall":6,"call":-1,"sms":-1},"20":{"uid":20,"number":"0615832137","username":"","firstname":"Thomas","lastname":"sheila","countsms":0,"countcall":1,"call":-1,"sms":-1},"21":{"uid":21,"number":"0561142788","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"22":{"uid":22,"number":"0630446541","username":"SABINE","firstname":"","lastname":"","countsms":0,"countcall":7,"call":-1,"sms":-1},"23":{"uid":23,"number":"0603316128","username":"","firstname":"Julien","lastname":"Pote Risoul ","countsms":0,"countcall":12,"call":7,"sms":-1},"24":{"uid":24,"number":"0628350557","username":"","firstname":"Henry","lastname":"Brocante ","countsms":0,"countcall":1,"call":-1,"sms":-1},"25":{"uid":25,"number":"0561476273","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"26":{"uid":26,"number":"0624409587","username":"CHRIS","firstname":"","lastname":"","countsms":0,"countcall":8,"call":-1,"sms":-1},"27":{"uid":27,"number":"0664896200","username":"TOUF","firstname":"","lastname":"","countsms":4,"countcall":3,"call":-1,"sms":6},"28":{"uid":28,"number":"0663051612","username":"BENOU","firstname":"","lastname":"","countsms":2,"countcall":4,"call":-1,"sms":-1},"29":{"uid":29,"number":"0561623355","username":"","firstname":"Dentiste","lastname":"Abou Zenoun","countsms":0,"countcall":2,"call":-1,"sms":-1},"30":{"uid":30,"number":"0472349688","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"31":{"uid":31,"number":"0680995389","username":"EMI.JU","firstname":"","lastname":"","countsms":1,"countcall":6,"call":-1,"sms":-1},"32":{"uid":32,"number":"0681340128","username":"","firstname":"Veronique","lastname":"Atelier","countsms":0,"countcall":5,"call":-1,"sms":-1},"33":{"uid":33,"number":"+212651997650","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"34":{"uid":34,"number":"0629560959","username":"JP","firstname":"","lastname":"","countsms":0,"countcall":4,"call":-1,"sms":-1},"35":{"uid":35,"number":"0561239876","username":"","firstname":"Le","lastname":"may ","countsms":0,"countcall":3,"call":-1,"sms":-1},"36":{"uid":36,"number":"0609973069","username":"YASMINA","firstname":"","lastname":"","countsms":0,"countcall":3,"call":-1,"sms":-1},"37":{"uid":37,"number":"0684030747","username":"SEV","firstname":"","lastname":"","countsms":0,"countcall":3,"call":-1,"sms":-1},"38":{"uid":38,"number":"0561624298","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"39":{"uid":39,"number":"0450407425","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"40":{"uid":40,"number":"0183802858","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"41":{"uid":41,"number":"0567775136","username":"","firstname":"Dermato","lastname":"Clinique ","countsms":0,"countcall":5,"call":-1,"sms":-1},"42":{"uid":42,"number":"0562720643","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"43":{"uid":43,"number":"0581313313","username":"","firstname":"","lastname":"","countsms":0,"countcall":4,"call":-1,"sms":-1},"44":{"uid":44,"number":"0561226764","username":"Qualisud","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"45":{"uid":45,"number":"0664778618","username":"","firstname":"","lastname":"","countsms":22,"countcall":4,"call":-1,"sms":2},"46":{"uid":46,"number":"0561628607","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"47":{"uid":47,"number":"0610129032","username":"PAPA","firstname":"","lastname":"","countsms":0,"countcall":2,"call":-1,"sms":-1},"48":{"uid":48,"number":"0980980860","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"49":{"uid":49,"number":"0688086861","username":"","firstname":"Tom","lastname":"lyon","countsms":0,"countcall":1,"call":-1,"sms":-1},"50":{"uid":50,"number":"3631","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"51":{"uid":51,"number":"0581335316","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"52":{"uid":52,"number":"0672824975","username":"","firstname":"Mag.flo","lastname":"","countsms":4,"countcall":0,"call":-1,"sms":7},"53":{"uid":53,"number":"0679804426","username":"","firstname":"Julien","lastname":"Dame Pipi","countsms":3,"countcall":0,"call":-1,"sms":9},"54":{"uid":54,"number":"0687104946","username":"MIGUEL","firstname":"","lastname":"","countsms":1,"countcall":1,"call":-1,"sms":-1},"55":{"uid":55,"number":"0562488540","username":"","firstname":"","lastname":"","countsms":0,"countcall":9,"call":-1,"sms":-1},"56":{"uid":56,"number":"0611477364","username":"","firstname":"Pierre","lastname":"Paris","countsms":18,"countcall":0,"call":-1,"sms":3},"57":{"uid":57,"number":"0561125238","username":"","firstname":"Mairie","lastname":"Des Minimes","countsms":0,"countcall":3,"call":-1,"sms":-1},"58":{"uid":58,"number":"0561125230","username":"","firstname":"","lastname":"","countsms":0,"countcall":9,"call":-1,"sms":-1},"59":{"uid":59,"number":"0561104747","username":"CMA","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"60":{"uid":60,"number":"3646","username":"","firstname":"","lastname":"","countsms":0,"countcall":2,"call":-1,"sms":-1},"61":{"uid":61,"number":"3101","username":"","firstname":"","lastname":"","countsms":0,"countcall":2,"call":-1,"sms":-1},"62":{"uid":62,"number":"0531229705","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"63":{"uid":63,"number":"0778663435","username":"Roberte","firstname":"","lastname":"","countsms":4,"countcall":0,"call":-1,"sms":8},"64":{"uid":64,"number":"0786494766","username":"Jane","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"65":{"uid":65,"number":"0385784207","username":"","firstname":"","lastname":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"66":{"uid":66,"number":"0562747300","username":"","firstname":"","lastname":"","countsms":0,"countcall":2,"call":-1,"sms":-1}},"mini":{"5":{"uid":5,"sexe":"0","age":"17","studies":"2","reltype":"0","reltypeSpecial":"","loc":"0","hash":4170547677,"valid":true,"timestamp":1463121033873},"6":{"uid":6,"sexe":"1","age":"6","studies":"3","reltype":"0","reltypeSpecial":"","loc":"0","hash":3000675304,"valid":true,"timestamp":1463121028234},"7":{"uid":7,"sexe":"0","age":"17","studies":"3","reltype":"4","reltypeSpecial":"","loc":"3","hash":1151327953,"valid":true,"timestamp":1463121044588},"8":{"uid":8,"sexe":"1","age":"18","studies":"1","reltype":"4","reltypeSpecial":"","loc":"1","hash":3925362285,"valid":true,"timestamp":1463121056153},"12":{"uid":12,"sexe":"0","age":"13","studies":"0","reltype":"4","reltypeSpecial":"","loc":"2","hash":3906855002,"valid":true,"timestamp":1463121091441},"13":{"uid":13,"sexe":"0","age":"5","studies":"3","reltype":"8","reltypeSpecial":"","loc":"2","hash":2080348055,"valid":true,"timestamp":1463121154944},"18":{"uid":18,"sexe":"0","age":"3","studies":"4","reltype":"10","reltypeSpecial":"autreTexte","loc":"2","hash":2930108570,"valid":true,"timestamp":1463156046228},"19":{"uid":19,"sexe":"1","age":"6","studies":"2","reltype":"9","reltypeSpecial":"","loc":"0","hash":3482714208,"valid":true,"timestamp":1463121444941},"20":{"uid":20,"sexe":"1","age":"16","studies":"2","reltype":"1","reltypeSpecial":"","loc":"0","hash":3387594106,"valid":true,"timestamp":1463121449733},"22":{"uid":22,"sexe":"1","age":"16","studies":"1","reltype":"9","reltypeSpecial":"","loc":"0","hash":310092016,"valid":true,"timestamp":1463121454473},"24":{"uid":24,"sexe":"1","age":"15","studies":"0","reltype":"2","reltypeSpecial":"","loc":"0","hash":3752310300,"valid":true,"timestamp":1463121459553},"26":{"uid":26,"sexe":"0","age":"16","studies":"1","reltype":"2","reltypeSpecial":"","loc":"0","hash":2457702480,"valid":true,"timestamp":1463121463773},"28":{"uid":28,"sexe":"0","age":"17","studies":"3","reltype":"4","reltypeSpecial":"","loc":"0","hash":2912154747,"valid":true,"timestamp":1463121467443},"29":{"uid":29,"sexe":"0","age":"15","studies":"2","reltype":"1","reltypeSpecial":"","loc":"0","hash":3560399521,"valid":true,"timestamp":1463121471665},"31":{"uid":31,"sexe":"1","age":"16","studies":"1","reltype":"3","reltypeSpecial":"","loc":"0","hash":1140382978,"valid":true,"timestamp":1463121476743},"32":{"uid":32,"sexe":"1","age":"15","studies":"4","reltype":"3","reltypeSpecial":"","loc":"0","hash":3636680689,"valid":true,"timestamp":1463121481517},"34":{"uid":34,"sexe":"1","age":"17","studies":"1","reltype":"9","reltypeSpecial":"","loc":"0","hash":548779780,"valid":true,"timestamp":1463121486518},"35":{"uid":35,"sexe":"0","age":"17","studies":"2","reltype":"1","reltypeSpecial":"","loc":"0","hash":1605348376,"valid":true,"timestamp":1463121490473},"36":{"uid":36,"sexe":"1","age":"17","studies":"2","reltype":"0","reltypeSpecial":"","loc":"0","hash":3453358717,"valid":true,"timestamp":1463121495657},"37":{"uid":37,"sexe":"0","age":"18","studies":"3","reltype":"2","reltypeSpecial":"","loc":"0","hash":2477080338,"valid":true,"timestamp":1463121500607},"41":{"uid":41,"sexe":"0","age":"3","studies":"2","reltype":"9","reltypeSpecial":"","loc":"0","hash":2786866017,"valid":true,"timestamp":1463121504773},"44":{"uid":44,"sexe":"0","age":"2","studies":"3","reltype":"9","reltypeSpecial":"","loc":"0","hash":3903593960,"valid":true,"timestamp":1463121508971},"47":{"uid":47,"sexe":"1","age":"3","studies":"2","reltype":"9","reltypeSpecial":"","loc":"0","hash":2800918740,"valid":true,"timestamp":1463121513415},"49":{"uid":49,"sexe":"0","age":"4","studies":"2","reltype":"9","reltypeSpecial":"","loc":"0","hash":4055221232,"valid":true,"timestamp":1463121518712},"54":{"uid":54,"sexe":"0","age":"5","studies":"2","reltype":"9","reltypeSpecial":"","loc":"0","hash":767109007,"valid":true,"timestamp":1463121524359},"57":{"uid":57,"sexe":"0","age":"6","studies":"1","reltype":"9","reltypeSpecial":"","loc":"0","hash":2427898095,"valid":true,"timestamp":1463121534115},"59":{"uid":59,"sexe":"0","age":"7","studies":"5","reltype":"9","reltypeSpecial":"","loc":"0","hash":3028547125,"valid":true,"timestamp":1463121538409},"64":{"uid":64,"sexe":"0","age":"7","studies":"3","reltype":"9","reltypeSpecial":"","loc":"0","hash":3051015062,"valid":true,"timestamp":1463121542483},"10-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":10},"14-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":14},"17-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":17},"21-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":21},"25-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":25},"30-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":30},"33-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":33},"38-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":38},"39-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":39},"40-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":40},"42-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":42},"43-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":43},"46-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":46},"48-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":48},"50-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":50},"51-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":51},"55-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":55},"58-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":58},"60-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":60},"61-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":61},"62-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":62},"65-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":65},"66-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":66}},"fiches":{"0":{"contact":1,"uid":0,"sexe":"1","age":"19","job":"46","famsit":"2","studies":"10","reltype":"0","reltypeSpecial":"","city":"","quartier":"a","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","20"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3032624191,"valid":false},"1":{"contact":16,"uid":1,"sexe":"0","age":"1","job":"31","famsit":"1","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1925645519,"valid":false},"2":{"contact":3,"uid":2,"sexe":"1","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":2737855099,"valid":false},"3":{"contact":4,"uid":3,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1488384241,"valid":false},"4":{"contact":2,"uid":4,"sexe":"1","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3023186180,"valid":false},"5":{"contact":0,"uid":5,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":847841430,"valid":false},"6":{"contact":15,"uid":6,"sexe":"1","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1571280007,"valid":false},"7":{"contact":23,"uid":7,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3698183083,"valid":false},"8":{"contact":11,"uid":8,"sexe":"1","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3749748941,"valid":false},"9":{"contact":9,"uid":9,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":614083722,"valid":false},"10":{"contact":1,"uid":10,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3342465886,"valid":false,"timestamp":1463157635297},"11":{"contact":3,"uid":11,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3704878955,"valid":false,"timestamp":1463157638606},"12":{"contact":45,"uid":12,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3631976628,"valid":false,"timestamp":1463157643029},"13":{"contact":56,"uid":13,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":2570989713,"valid":false,"timestamp":1463157646693},"14":{"contact":0,"uid":14,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":915595588,"valid":false,"timestamp":1463157650225},"15":{"contact":11,"uid":15,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1170161737,"valid":false,"timestamp":1463157653619},"16":{"contact":27,"uid":16,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1045545298,"valid":false,"timestamp":1463157657448},"17":{"contact":52,"uid":17,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":2072285014,"valid":false,"timestamp":1463157662081},"18":{"contact":63,"uid":18,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","8","12","16","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":3001572563,"valid":false,"timestamp":1463157666340},"19":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["0","4","8","12","16"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":19,"contact":53}},"matrice":{"7":[3],"9":[1],"11":[4],"12":[3],"14":[5,7]}} \ No newline at end of file +{"subject":{"tmp_id":"bcc6892693dc297179ad2b142c66ee6b17aff9f6","number":"06 69 05 19 10","username":"Adri"},"contacts":{"0":{"uid":0,"number":"0603770222","username":"MUSHI","countsms":12,"countcall":28,"call":5,"sms":4},"1":{"uid":1,"number":"0675373258","username":"FLO","countsms":96,"countcall":244,"call":0,"sms":0},"2":{"uid":2,"number":"0953681472","username":"4 FANTA","countsms":0,"countcall":30,"call":4,"sms":-1},"3":{"uid":3,"number":"0672447830","username":"Virgitti anne ","countsms":54,"countcall":46,"call":2,"sms":1},"4":{"uid":4,"number":"123","username":"","countsms":0,"countcall":38,"call":3,"sms":-1},"5":{"uid":5,"number":"0689529865","username":"3id","countsms":0,"countcall":1,"call":-1,"sms":-1},"6":{"uid":6,"number":"0603378605","username":"Genasia","countsms":0,"countcall":7,"call":-1,"sms":-1},"7":{"uid":7,"number":"0664870429","username":"JJB","countsms":0,"countcall":8,"call":-1,"sms":-1},"8":{"uid":8,"number":"0954226501","username":"FIX FLO","countsms":0,"countcall":2,"call":-1,"sms":-1},"9":{"uid":9,"number":"0624492953","username":"Plombier Folus 2","countsms":0,"countcall":10,"call":9,"sms":-1},"10":{"uid":10,"number":"0561472615","username":"","countsms":0,"countcall":3,"call":-1,"sms":-1},"11":{"uid":11,"number":"0610071116","username":"MAMA","countsms":5,"countcall":11,"call":8,"sms":5},"12":{"uid":12,"number":"0682914384","username":"Freddo Ariege","countsms":0,"countcall":6,"call":-1,"sms":-1},"13":{"uid":13,"number":"0562575178","username":"Flo Dga","countsms":0,"countcall":1,"call":-1,"sms":-1},"14":{"uid":14,"number":"0290871240","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"15":{"uid":15,"number":"0686330728","username":"A2","countsms":0,"countcall":18,"call":6,"sms":-1},"16":{"uid":16,"number":"0662665764","username":"Mathieu kolok ","countsms":1,"countcall":50,"call":1,"sms":-1},"17":{"uid":17,"number":"0698292616","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"18":{"uid":18,"number":"0661263732","username":"Tony Caen Tlse","countsms":0,"countcall":2,"call":-1,"sms":-1},"19":{"uid":19,"number":"0667219231","username":"FILOU","countsms":0,"countcall":6,"call":-1,"sms":-1},"20":{"uid":20,"number":"0615832137","username":"Thomas sheila","countsms":0,"countcall":1,"call":-1,"sms":-1},"21":{"uid":21,"number":"0561142788","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"22":{"uid":22,"number":"0630446541","username":"SABINE","countsms":0,"countcall":7,"call":-1,"sms":-1},"23":{"uid":23,"number":"0603316128","username":"Julien Pote Risoul ","countsms":0,"countcall":12,"call":7,"sms":-1},"24":{"uid":24,"number":"0628350557","username":"Henry Brocante ","countsms":0,"countcall":1,"call":-1,"sms":-1},"25":{"uid":25,"number":"0561476273","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"26":{"uid":26,"number":"0624409587","username":"CHRIS","countsms":0,"countcall":8,"call":-1,"sms":-1},"27":{"uid":27,"number":"0664896200","username":"TOUF","countsms":4,"countcall":3,"call":-1,"sms":6},"28":{"uid":28,"number":"0663051612","username":"BENOU","countsms":2,"countcall":4,"call":-1,"sms":-1},"29":{"uid":29,"number":"0561623355","username":"Dentiste Abou Zenoun","countsms":0,"countcall":2,"call":-1,"sms":-1},"30":{"uid":30,"number":"0472349688","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"31":{"uid":31,"number":"0680995389","username":"EMI.JU","countsms":1,"countcall":6,"call":-1,"sms":-1},"32":{"uid":32,"number":"0681340128","username":"Veronique Atelier","countsms":0,"countcall":5,"call":-1,"sms":-1},"33":{"uid":33,"number":"+212651997650","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"34":{"uid":34,"number":"0629560959","username":"JP","countsms":0,"countcall":4,"call":-1,"sms":-1},"35":{"uid":35,"number":"0561239876","username":"Le may ","countsms":0,"countcall":3,"call":-1,"sms":-1},"36":{"uid":36,"number":"0609973069","username":"YASMINA","countsms":0,"countcall":3,"call":-1,"sms":-1},"37":{"uid":37,"number":"0684030747","username":"SEV","countsms":0,"countcall":3,"call":-1,"sms":-1},"38":{"uid":38,"number":"0561624298","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"39":{"uid":39,"number":"0450407425","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"40":{"uid":40,"number":"0183802858","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"41":{"uid":41,"number":"0567775136","username":"Dermato Clinique ","countsms":0,"countcall":5,"call":-1,"sms":-1},"42":{"uid":42,"number":"0562720643","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"43":{"uid":43,"number":"0581313313","username":"","countsms":0,"countcall":4,"call":-1,"sms":-1},"44":{"uid":44,"number":"0561226764","username":"Qualisud","countsms":0,"countcall":1,"call":-1,"sms":-1},"45":{"uid":45,"number":"0664778618","username":"","countsms":22,"countcall":4,"call":-1,"sms":2},"46":{"uid":46,"number":"0561628607","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"47":{"uid":47,"number":"0610129032","username":"PAPA","countsms":0,"countcall":2,"call":-1,"sms":-1},"48":{"uid":48,"number":"0980980860","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"49":{"uid":49,"number":"0688086861","username":"Tom lyon","countsms":0,"countcall":1,"call":-1,"sms":-1},"50":{"uid":50,"number":"3631","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"51":{"uid":51,"number":"0581335316","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"52":{"uid":52,"number":"0672824975","username":"Mag.flo ","countsms":4,"countcall":0,"call":-1,"sms":7},"53":{"uid":53,"number":"0679804426","username":"Julien Dame Pipi","countsms":3,"countcall":0,"call":-1,"sms":9},"54":{"uid":54,"number":"0687104946","username":"MIGUEL","countsms":1,"countcall":1,"call":-1,"sms":-1},"55":{"uid":55,"number":"0562488540","username":"","countsms":0,"countcall":9,"call":-1,"sms":-1},"56":{"uid":56,"number":"0611477364","username":"Pierre Paris","countsms":18,"countcall":0,"call":-1,"sms":3},"57":{"uid":57,"number":"0561125238","username":"Mairie Des Minimes","countsms":0,"countcall":3,"call":-1,"sms":-1},"58":{"uid":58,"number":"0561125230","username":"","countsms":0,"countcall":9,"call":-1,"sms":-1},"59":{"uid":59,"number":"0561104747","username":"CMA","countsms":0,"countcall":1,"call":-1,"sms":-1},"60":{"uid":60,"number":"3646","username":"","countsms":0,"countcall":2,"call":-1,"sms":-1},"61":{"uid":61,"number":"3101","username":"","countsms":0,"countcall":2,"call":-1,"sms":-1},"62":{"uid":62,"number":"0531229705","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"63":{"uid":63,"number":"0778663435","username":"Roberte","countsms":4,"countcall":0,"call":-1,"sms":8},"64":{"uid":64,"number":"0786494766","username":"Jane","countsms":0,"countcall":1,"call":-1,"sms":-1},"65":{"uid":65,"number":"0385784207","username":"","countsms":0,"countcall":1,"call":-1,"sms":-1},"66":{"uid":66,"number":"0562747300","username":"","countsms":0,"countcall":2,"call":-1,"sms":-1}},"mini":{"5":{"uid":5,"sexe":"0","age":"17","studies":"2","reltype":"0","reltypeSpecial":"","loc":"0","hash":4170547677,"valid":true},"6":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"0","reltypeSpecial":"","timestamp":0,"valid":false,"uid":6},"7":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"0","reltypeSpecial":"","timestamp":0,"valid":false,"uid":7},"8":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"0","reltypeSpecial":"","timestamp":0,"valid":false,"uid":8},"12":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":12},"13":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":13},"18":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":18},"19":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":19},"20":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":20},"22":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":22},"24":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":24},"26":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":26},"28":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":28},"29":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":29},"31":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":31},"32":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":32},"34":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":34},"35":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":35},"36":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":36},"37":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":37},"41":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":41},"44":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":44},"47":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":47},"49":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":49},"54":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":54},"57":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":57},"59":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":59},"64":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":64},"10-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":10},"14-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":14},"17-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":17},"21-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":21},"25-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":25},"30-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":30},"33-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":33},"38-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":38},"39-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":39},"40-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":40},"42-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":42},"43-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":43},"46-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":46},"48-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":48},"50-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":50},"51-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":51},"55-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":55},"58-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":58},"60-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":60},"61-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":61},"62-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":62},"65-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":65},"66-":{"sexe":"0","age":".","studies":".","loc":"0","reltype":"9","reltypeSpecial":"","timestamp":0,"valid":false,"uid":66}},"fiches":{"0":{"contact":1,"uid":0,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1349335092,"valid":false},"1":{"contact":16,"uid":1,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1056380225,"valid":false},"2":{"contact":3,"uid":2,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1126167882,"valid":false},"3":{"contact":4,"uid":3,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":2858378202,"valid":false},"4":{"contact":2,"uid":4,"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":1411221045,"valid":false},"5":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":5,"contact":0},"6":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":6,"contact":15},"7":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":7,"contact":23},"8":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":8,"contact":11},"9":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":9,"contact":9},"10":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":10,"contact":1},"11":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":11,"contact":3},"12":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":12,"contact":45},"13":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":13,"contact":56},"14":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":14,"contact":0},"15":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":15,"contact":11},"16":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":16,"contact":27},"17":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":17,"contact":52},"18":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":18,"contact":63},"19":{"sexe":"0","age":".","job":".","famsit":"0","studies":".","reltype":"0","reltypeSpecial":"","city":"","quartier":"","cp":"","loc":"0","duration":["",""],"context":"0","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"timestamp":0,"valid":false,"uid":19,"contact":53}},"matrice":{}} \ No newline at end of file diff --git a/tmp/phone_bcc6892693dc297179ad2b142c66ee6b17aff9f6.json b/tmp/phone_bcc6892693dc297179ad2b142c66ee6b17aff9f6.json new file mode 100644 index 0000000..e3e4508 --- /dev/null +++ b/tmp/phone_bcc6892693dc297179ad2b142c66ee6b17aff9f6.json @@ -0,0 +1 @@ +{"logs":[{"id":0,"direction":1,"type":0,"date":1411426053,"duration":0},{"id":1,"direction":2,"type":0,"date":1411460855,"duration":0},{"id":1,"direction":0,"type":0,"date":1411466586,"duration":104},{"id":2,"direction":2,"type":0,"date":1411471405,"duration":0},{"id":2,"direction":2,"type":0,"date":1411471447,"duration":0},{"id":2,"direction":2,"type":0,"date":1411471496,"duration":0},{"id":2,"direction":2,"type":0,"date":1411471657,"duration":0},{"id":2,"direction":2,"type":0,"date":1411471698,"duration":0},{"id":2,"direction":2,"type":0,"date":1411471734,"duration":0},{"id":2,"direction":2,"type":0,"date":1411472387,"duration":0},{"id":2,"direction":2,"type":0,"date":1411476096,"duration":0},{"id":3,"direction":2,"type":0,"date":1411477179,"duration":0},{"id":2,"direction":2,"type":0,"date":1411479469,"duration":0},{"id":2,"direction":2,"type":0,"date":1411479917,"duration":0},{"id":2,"direction":2,"type":0,"date":1411480317,"duration":0},{"id":2,"direction":2,"type":0,"date":1411482175,"duration":0},{"id":2,"direction":2,"type":0,"date":1411482220,"duration":0},{"id":2,"direction":2,"type":0,"date":1411483191,"duration":0},{"id":2,"direction":2,"type":0,"date":1411483258,"duration":0},{"id":2,"direction":2,"type":0,"date":1411484211,"duration":0},{"id":1,"direction":2,"type":0,"date":1411486709,"duration":0},{"id":4,"direction":1,"type":0,"date":1411542683,"duration":71},{"id":5,"direction":0,"type":0,"date":1411560264,"duration":54},{"id":6,"direction":0,"type":0,"date":1411583444,"duration":258},{"id":1,"direction":0,"type":0,"date":1411588706,"duration":0},{"id":4,"direction":1,"type":0,"date":1411589167,"duration":14},{"id":4,"direction":1,"type":0,"date":1411589230,"duration":6},{"id":1,"direction":0,"type":0,"date":1411589309,"duration":0},{"id":4,"direction":1,"type":0,"date":1411605045,"duration":0},{"id":0,"direction":0,"type":0,"date":1411631558,"duration":123},{"id":1,"direction":2,"type":0,"date":1411646189,"duration":0},{"id":1,"direction":1,"type":0,"date":1411646829,"duration":4},{"id":1,"direction":0,"type":0,"date":1411647189,"duration":115},{"id":1,"direction":0,"type":0,"date":1411654480,"duration":23},{"id":1,"direction":1,"type":0,"date":1411657516,"duration":221},{"id":0,"direction":1,"type":0,"date":1411657759,"duration":30},{"id":7,"direction":0,"type":0,"date":1411667774,"duration":154},{"id":2,"direction":2,"type":0,"date":1411669650,"duration":0},{"id":1,"direction":0,"type":0,"date":1411680552,"duration":232},{"id":1,"direction":1,"type":0,"date":1411681088,"duration":35},{"id":1,"direction":1,"type":0,"date":1411711054,"duration":0},{"id":1,"direction":1,"type":0,"date":1411711060,"duration":3},{"id":1,"direction":1,"type":0,"date":1411711078,"duration":7},{"id":1,"direction":1,"type":0,"date":1411711100,"duration":2},{"id":1,"direction":1,"type":0,"date":1411711763,"duration":2},{"id":8,"direction":1,"type":0,"date":1411711795,"duration":3},{"id":9,"direction":0,"type":0,"date":1411715019,"duration":45},{"id":1,"direction":1,"type":0,"date":1411719925,"duration":2},{"id":1,"direction":1,"type":0,"date":1411725935,"duration":2},{"id":1,"direction":1,"type":0,"date":1411727847,"duration":4},{"id":1,"direction":1,"type":0,"date":1411730412,"duration":2},{"id":1,"direction":0,"type":0,"date":1411730468,"duration":144},{"id":1,"direction":2,"type":0,"date":1411740534,"duration":0},{"id":1,"direction":1,"type":0,"date":1411742715,"duration":98},{"id":1,"direction":2,"type":0,"date":1411744733,"duration":0},{"id":1,"direction":0,"type":0,"date":1411744767,"duration":10},{"id":1,"direction":0,"type":0,"date":1411813232,"duration":134},{"id":10,"direction":1,"type":0,"date":1411813399,"duration":0},{"id":10,"direction":1,"type":0,"date":1411815660,"duration":19},{"id":1,"direction":0,"type":0,"date":1411821847,"duration":116},{"id":1,"direction":0,"type":0,"date":1411828726,"duration":190},{"id":3,"direction":0,"type":0,"date":1411980289,"duration":267},{"id":1,"direction":1,"type":0,"date":1411981001,"duration":297},{"id":4,"direction":1,"type":0,"date":1411987247,"duration":23},{"id":1,"direction":0,"type":0,"date":1411995928,"duration":241},{"id":3,"direction":0,"type":0,"date":1411996982,"duration":186},{"id":7,"direction":0,"type":0,"date":1412000525,"duration":71},{"id":4,"direction":1,"type":0,"date":1412003166,"duration":110},{"id":7,"direction":0,"type":0,"date":1412005512,"duration":4},{"id":7,"direction":1,"type":0,"date":1412005625,"duration":13},{"id":9,"direction":0,"type":0,"date":1412006989,"duration":8},{"id":1,"direction":1,"type":0,"date":1412007642,"duration":258},{"id":7,"direction":0,"type":0,"date":1412008135,"duration":18},{"id":9,"direction":1,"type":0,"date":1412010599,"duration":16},{"id":11,"direction":0,"type":0,"date":1412012130,"duration":760},{"id":1,"direction":0,"type":0,"date":1412025471,"duration":399},{"id":1,"direction":1,"type":0,"date":1412059366,"duration":15},{"id":1,"direction":2,"type":0,"date":1412059755,"duration":0},{"id":1,"direction":1,"type":0,"date":1412060311,"duration":37},{"id":3,"direction":0,"type":0,"date":1412076287,"duration":122},{"id":7,"direction":0,"type":0,"date":1412077012,"duration":35},{"id":1,"direction":0,"type":0,"date":1412088658,"duration":97},{"id":9,"direction":1,"type":0,"date":1412095547,"duration":3},{"id":12,"direction":0,"type":0,"date":1412096125,"duration":96},{"id":7,"direction":2,"type":0,"date":1412155482,"duration":0},{"id":7,"direction":1,"type":0,"date":1412155525,"duration":67},{"id":9,"direction":1,"type":0,"date":1412160520,"duration":3},{"id":1,"direction":0,"type":0,"date":1412161283,"duration":198},{"id":9,"direction":0,"type":0,"date":1412161686,"duration":106},{"id":3,"direction":0,"type":0,"date":1412164577,"duration":361},{"id":13,"direction":0,"type":0,"date":1412172001,"duration":182},{"id":9,"direction":0,"type":0,"date":1412175608,"duration":71},{"id":1,"direction":1,"type":0,"date":1412192993,"duration":2},{"id":1,"direction":1,"type":0,"date":1412193099,"duration":0},{"id":1,"direction":1,"type":0,"date":1412193120,"duration":2},{"id":1,"direction":0,"type":0,"date":1412196763,"duration":320},{"id":1,"direction":2,"type":0,"date":1412232605,"duration":0},{"id":1,"direction":2,"type":0,"date":1412232636,"duration":0},{"id":1,"direction":1,"type":0,"date":1412232673,"duration":26},{"id":3,"direction":1,"type":0,"date":1412241435,"duration":8},{"id":3,"direction":1,"type":0,"date":1412241539,"duration":0},{"id":3,"direction":1,"type":0,"date":1412241762,"duration":0},{"id":14,"direction":0,"type":0,"date":1412243462,"duration":2},{"id":15,"direction":1,"type":0,"date":1412248129,"duration":172},{"id":1,"direction":0,"type":0,"date":1412249101,"duration":26},{"id":16,"direction":1,"type":0,"date":1412259055,"duration":18},{"id":16,"direction":1,"type":0,"date":1412262166,"duration":2},{"id":2,"direction":1,"type":0,"date":1412262207,"duration":1},{"id":16,"direction":1,"type":0,"date":1412262250,"duration":0},{"id":1,"direction":1,"type":0,"date":1412262258,"duration":71},{"id":15,"direction":1,"type":0,"date":1412262347,"duration":0},{"id":4,"direction":1,"type":0,"date":1412262520,"duration":36},{"id":3,"direction":0,"type":0,"date":1412265165,"duration":69},{"id":10,"direction":1,"type":0,"date":1412266117,"duration":4},{"id":17,"direction":1,"type":0,"date":1412266187,"duration":24},{"id":1,"direction":0,"type":0,"date":1412268456,"duration":25},{"id":3,"direction":0,"type":0,"date":1412320424,"duration":10},{"id":4,"direction":1,"type":0,"date":1412324425,"duration":21},{"id":16,"direction":0,"type":0,"date":1412330861,"duration":123},{"id":1,"direction":0,"type":0,"date":1412334007,"duration":16},{"id":18,"direction":0,"type":0,"date":1412335291,"duration":197},{"id":1,"direction":1,"type":0,"date":1412348594,"duration":29},{"id":1,"direction":0,"type":0,"date":1412351577,"duration":42},{"id":1,"direction":0,"type":0,"date":1412357942,"duration":51},{"id":16,"direction":0,"type":0,"date":1412374222,"duration":49},{"id":12,"direction":0,"type":0,"date":1412410201,"duration":49},{"id":12,"direction":0,"type":0,"date":1412416839,"duration":8},{"id":1,"direction":0,"type":0,"date":1412417040,"duration":198},{"id":3,"direction":1,"type":0,"date":1412422292,"duration":4},{"id":3,"direction":0,"type":0,"date":1412422390,"duration":71},{"id":3,"direction":0,"type":0,"date":1412422530,"duration":164},{"id":19,"direction":1,"type":0,"date":1412424078,"duration":24},{"id":19,"direction":0,"type":0,"date":1412426686,"duration":51},{"id":1,"direction":0,"type":0,"date":1412432526,"duration":37},{"id":16,"direction":0,"type":0,"date":1412433711,"duration":51},{"id":1,"direction":1,"type":0,"date":1412439767,"duration":385},{"id":20,"direction":0,"type":0,"date":1412445123,"duration":212},{"id":12,"direction":1,"type":0,"date":1412446464,"duration":46},{"id":1,"direction":0,"type":0,"date":1412505852,"duration":16},{"id":1,"direction":0,"type":0,"date":1412513929,"duration":8},{"id":16,"direction":1,"type":0,"date":1412514032,"duration":47},{"id":16,"direction":0,"type":0,"date":1412527614,"duration":33},{"id":21,"direction":0,"type":0,"date":1412585876,"duration":554},{"id":16,"direction":0,"type":0,"date":1412589911,"duration":76},{"id":0,"direction":0,"type":0,"date":1412597972,"duration":19},{"id":1,"direction":0,"type":0,"date":1412609358,"duration":0},{"id":1,"direction":1,"type":0,"date":1412609376,"duration":291},{"id":22,"direction":1,"type":0,"date":1412611236,"duration":62},{"id":1,"direction":0,"type":0,"date":1412615923,"duration":29},{"id":1,"direction":1,"type":0,"date":1412621860,"duration":276},{"id":1,"direction":1,"type":0,"date":1412662436,"duration":5},{"id":1,"direction":1,"type":0,"date":1412662472,"duration":0},{"id":1,"direction":0,"type":0,"date":1412662477,"duration":13},{"id":16,"direction":0,"type":0,"date":1412663886,"duration":80},{"id":16,"direction":0,"type":0,"date":1412667829,"duration":31},{"id":9,"direction":0,"type":0,"date":1412668116,"duration":375},{"id":16,"direction":0,"type":0,"date":1412668936,"duration":11},{"id":6,"direction":0,"type":0,"date":1412671775,"duration":395},{"id":16,"direction":0,"type":0,"date":1412672769,"duration":118},{"id":16,"direction":0,"type":0,"date":1412672914,"duration":7},{"id":16,"direction":0,"type":0,"date":1412675777,"duration":5},{"id":23,"direction":1,"type":0,"date":1412678571,"duration":770},{"id":1,"direction":0,"type":0,"date":1412680408,"duration":13},{"id":1,"direction":1,"type":0,"date":1412680851,"duration":274},{"id":3,"direction":0,"type":0,"date":1412684947,"duration":213},{"id":1,"direction":0,"type":0,"date":1412702475,"duration":53},{"id":16,"direction":0,"type":0,"date":1412744830,"duration":10},{"id":16,"direction":2,"type":0,"date":1412783611,"duration":0},{"id":24,"direction":1,"type":0,"date":1412784925,"duration":0},{"id":1,"direction":0,"type":0,"date":1412789202,"duration":62},{"id":1,"direction":0,"type":0,"date":1412853466,"duration":496},{"id":25,"direction":1,"type":0,"date":1412858982,"duration":66},{"id":26,"direction":0,"type":0,"date":1412861124,"duration":219},{"id":1,"direction":1,"type":0,"date":1412872008,"duration":232},{"id":4,"direction":1,"type":0,"date":1412873170,"duration":21},{"id":1,"direction":1,"type":0,"date":1412888448,"duration":201},{"id":1,"direction":0,"type":0,"date":1412949700,"duration":180},{"id":27,"direction":2,"type":0,"date":1412968406,"duration":0},{"id":27,"direction":1,"type":0,"date":1412969003,"duration":47},{"id":28,"direction":0,"type":0,"date":1413037002,"duration":84},{"id":0,"direction":1,"type":0,"date":1413037221,"duration":2},{"id":28,"direction":1,"type":0,"date":1413044931,"duration":20},{"id":28,"direction":0,"type":0,"date":1413055181,"duration":38},{"id":1,"direction":0,"type":0,"date":1413059146,"duration":13},{"id":16,"direction":0,"type":0,"date":1413069201,"duration":40},{"id":1,"direction":0,"type":0,"date":1413070099,"duration":208},{"id":1,"direction":0,"type":0,"date":1413108051,"duration":170},{"id":1,"direction":2,"type":0,"date":1413119224,"duration":0},{"id":1,"direction":0,"type":0,"date":1413123964,"duration":216},{"id":1,"direction":0,"type":0,"date":1413131688,"duration":106},{"id":12,"direction":0,"type":0,"date":1413199378,"duration":135},{"id":3,"direction":0,"type":0,"date":1413199532,"duration":44},{"id":29,"direction":1,"type":0,"date":1413201554,"duration":26},{"id":1,"direction":0,"type":0,"date":1413206581,"duration":44},{"id":29,"direction":1,"type":0,"date":1413211514,"duration":100},{"id":1,"direction":0,"type":0,"date":1413213926,"duration":25},{"id":12,"direction":0,"type":0,"date":1413222179,"duration":21},{"id":1,"direction":0,"type":0,"date":1413284444,"duration":15},{"id":30,"direction":1,"type":0,"date":1413289057,"duration":192},{"id":0,"direction":0,"type":0,"date":1413292178,"duration":64},{"id":1,"direction":2,"type":0,"date":1413298114,"duration":0},{"id":1,"direction":1,"type":0,"date":1413298864,"duration":17},{"id":1,"direction":1,"type":0,"date":1413298912,"duration":0},{"id":1,"direction":0,"type":0,"date":1413298913,"duration":105},{"id":1,"direction":0,"type":0,"date":1413300272,"duration":60},{"id":16,"direction":0,"type":0,"date":1413300545,"duration":45},{"id":31,"direction":2,"type":0,"date":1413305382,"duration":0},{"id":31,"direction":1,"type":0,"date":1413308768,"duration":0},{"id":1,"direction":1,"type":0,"date":1413310796,"duration":313},{"id":19,"direction":0,"type":0,"date":1413373269,"duration":44},{"id":1,"direction":0,"type":0,"date":1413382710,"duration":39},{"id":0,"direction":0,"type":0,"date":1413450573,"duration":31},{"id":32,"direction":0,"type":0,"date":1413452058,"duration":43},{"id":1,"direction":0,"type":0,"date":1413456345,"duration":149},{"id":1,"direction":0,"type":0,"date":1413472773,"duration":223},{"id":3,"direction":2,"type":0,"date":1413475391,"duration":0},{"id":3,"direction":1,"type":0,"date":1413475546,"duration":334},{"id":1,"direction":1,"type":0,"date":1413478541,"duration":63},{"id":16,"direction":2,"type":0,"date":1413478818,"duration":0},{"id":33,"direction":2,"type":0,"date":1413484198,"duration":0},{"id":4,"direction":1,"type":0,"date":1413484707,"duration":25},{"id":1,"direction":1,"type":0,"date":1413493588,"duration":35},{"id":32,"direction":0,"type":0,"date":1413537424,"duration":37},{"id":11,"direction":1,"type":0,"date":1413537796,"duration":0},{"id":11,"direction":1,"type":0,"date":1413537861,"duration":250},{"id":11,"direction":0,"type":0,"date":1413537903,"duration":892},{"id":1,"direction":0,"type":0,"date":1413543357,"duration":349},{"id":3,"direction":0,"type":0,"date":1413552183,"duration":241},{"id":9,"direction":2,"type":0,"date":1413555494,"duration":0},{"id":9,"direction":1,"type":0,"date":1413555565,"duration":39},{"id":4,"direction":1,"type":0,"date":1413555632,"duration":27},{"id":1,"direction":0,"type":0,"date":1413556059,"duration":11},{"id":1,"direction":1,"type":0,"date":1413556616,"duration":31},{"id":3,"direction":0,"type":0,"date":1413565432,"duration":181},{"id":34,"direction":0,"type":0,"date":1413566099,"duration":314},{"id":1,"direction":0,"type":0,"date":1413567563,"duration":245},{"id":1,"direction":1,"type":0,"date":1413578255,"duration":172},{"id":1,"direction":1,"type":0,"date":1413580571,"duration":71},{"id":1,"direction":0,"type":0,"date":1413583191,"duration":193},{"id":1,"direction":1,"type":0,"date":1413583426,"duration":28},{"id":34,"direction":1,"type":0,"date":1413623620,"duration":26},{"id":34,"direction":0,"type":0,"date":1413623957,"duration":32},{"id":34,"direction":2,"type":0,"date":1413628109,"duration":0},{"id":1,"direction":2,"type":0,"date":1413628272,"duration":0},{"id":4,"direction":1,"type":0,"date":1413628533,"duration":13},{"id":4,"direction":1,"type":0,"date":1413629787,"duration":0},{"id":1,"direction":1,"type":0,"date":1413629792,"duration":34},{"id":1,"direction":1,"type":0,"date":1413636096,"duration":0},{"id":1,"direction":1,"type":0,"date":1413636114,"duration":0},{"id":1,"direction":1,"type":0,"date":1413636125,"duration":0},{"id":1,"direction":1,"type":0,"date":1413642655,"duration":85},{"id":1,"direction":1,"type":0,"date":1413668553,"duration":64},{"id":4,"direction":1,"type":0,"date":1413673422,"duration":0},{"id":4,"direction":1,"type":0,"date":1413706985,"duration":20},{"id":22,"direction":0,"type":0,"date":1413714793,"duration":48},{"id":1,"direction":0,"type":0,"date":1413715858,"duration":207},{"id":1,"direction":0,"type":0,"date":1413723687,"duration":52},{"id":1,"direction":1,"type":0,"date":1413734326,"duration":227},{"id":1,"direction":0,"type":0,"date":1413745661,"duration":119},{"id":11,"direction":0,"type":0,"date":1413799391,"duration":488},{"id":1,"direction":0,"type":0,"date":1413804083,"duration":126},{"id":1,"direction":0,"type":0,"date":1413817078,"duration":180},{"id":3,"direction":2,"type":0,"date":1413818525,"duration":0},{"id":3,"direction":1,"type":0,"date":1413818582,"duration":11},{"id":3,"direction":1,"type":0,"date":1413818606,"duration":112},{"id":6,"direction":1,"type":0,"date":1413819000,"duration":44},{"id":6,"direction":0,"type":0,"date":1413819255,"duration":111},{"id":32,"direction":1,"type":0,"date":1413819588,"duration":111},{"id":23,"direction":1,"type":0,"date":1413822373,"duration":0},{"id":23,"direction":1,"type":0,"date":1413822385,"duration":0},{"id":23,"direction":1,"type":0,"date":1413822400,"duration":0},{"id":23,"direction":1,"type":0,"date":1413822461,"duration":0},{"id":4,"direction":1,"type":0,"date":1413825277,"duration":32},{"id":23,"direction":0,"type":0,"date":1413834310,"duration":195},{"id":1,"direction":1,"type":0,"date":1413840503,"duration":33},{"id":1,"direction":2,"type":0,"date":1413840681,"duration":0},{"id":1,"direction":2,"type":0,"date":1413840722,"duration":0},{"id":1,"direction":1,"type":0,"date":1413841047,"duration":459},{"id":1,"direction":1,"type":0,"date":1413869031,"duration":2},{"id":1,"direction":1,"type":0,"date":1413869067,"duration":2},{"id":1,"direction":1,"type":0,"date":1413869112,"duration":2},{"id":1,"direction":1,"type":0,"date":1413869152,"duration":15},{"id":32,"direction":0,"type":0,"date":1413886555,"duration":14},{"id":0,"direction":1,"type":0,"date":1413895251,"duration":47},{"id":1,"direction":0,"type":0,"date":1413896540,"duration":50},{"id":1,"direction":0,"type":0,"date":1413902957,"duration":14},{"id":3,"direction":1,"type":0,"date":1413906644,"duration":0},{"id":1,"direction":1,"type":0,"date":1413911672,"duration":37},{"id":1,"direction":0,"type":0,"date":1413978047,"duration":73},{"id":3,"direction":0,"type":0,"date":1413980681,"duration":269},{"id":1,"direction":0,"type":0,"date":1413985779,"duration":45},{"id":8,"direction":2,"type":0,"date":1414054927,"duration":0},{"id":35,"direction":1,"type":0,"date":1414058398,"duration":18},{"id":4,"direction":1,"type":0,"date":1414060593,"duration":29},{"id":1,"direction":1,"type":0,"date":1414060775,"duration":2},{"id":1,"direction":1,"type":0,"date":1414061054,"duration":2},{"id":1,"direction":1,"type":0,"date":1414061267,"duration":2},{"id":1,"direction":0,"type":0,"date":1414061404,"duration":29},{"id":6,"direction":1,"type":0,"date":1414065919,"duration":21},{"id":6,"direction":1,"type":0,"date":1414068934,"duration":109},{"id":26,"direction":2,"type":0,"date":1414069268,"duration":0},{"id":0,"direction":0,"type":0,"date":1414084141,"duration":163},{"id":4,"direction":1,"type":0,"date":1414085120,"duration":171},{"id":26,"direction":2,"type":0,"date":1414085123,"duration":0},{"id":0,"direction":1,"type":0,"date":1414085299,"duration":32},{"id":4,"direction":1,"type":0,"date":1414085358,"duration":13},{"id":0,"direction":2,"type":0,"date":1414151512,"duration":0},{"id":16,"direction":2,"type":0,"date":1414163456,"duration":0},{"id":16,"direction":2,"type":0,"date":1414163487,"duration":0},{"id":4,"direction":1,"type":0,"date":1414164239,"duration":25},{"id":16,"direction":1,"type":0,"date":1414166586,"duration":5},{"id":4,"direction":1,"type":0,"date":1414167086,"duration":20},{"id":4,"direction":1,"type":0,"date":1414167920,"duration":15},{"id":16,"direction":1,"type":0,"date":1414167941,"duration":44},{"id":16,"direction":0,"type":0,"date":1414168308,"duration":67},{"id":16,"direction":0,"type":0,"date":1414178415,"duration":16},{"id":1,"direction":0,"type":0,"date":1414241289,"duration":116},{"id":23,"direction":0,"type":0,"date":1414247087,"duration":36},{"id":16,"direction":0,"type":0,"date":1414247951,"duration":76},{"id":1,"direction":2,"type":0,"date":1414248948,"duration":0},{"id":1,"direction":1,"type":0,"date":1414250412,"duration":68},{"id":1,"direction":1,"type":0,"date":1414254050,"duration":11},{"id":1,"direction":1,"type":0,"date":1414254095,"duration":0},{"id":1,"direction":0,"type":0,"date":1414328136,"duration":136},{"id":11,"direction":0,"type":0,"date":1414345298,"duration":915},{"id":26,"direction":2,"type":0,"date":1414350078,"duration":0},{"id":36,"direction":0,"type":0,"date":1414410319,"duration":99},{"id":3,"direction":0,"type":0,"date":1414426841,"duration":7},{"id":3,"direction":0,"type":0,"date":1414426871,"duration":70},{"id":36,"direction":1,"type":0,"date":1414429203,"duration":42},{"id":1,"direction":1,"type":0,"date":1414495520,"duration":107},{"id":36,"direction":0,"type":0,"date":1414500978,"duration":13},{"id":1,"direction":0,"type":0,"date":1414508884,"duration":108},{"id":0,"direction":0,"type":0,"date":1414510123,"duration":35},{"id":37,"direction":0,"type":0,"date":1414528786,"duration":406},{"id":3,"direction":0,"type":0,"date":1414575100,"duration":143},{"id":1,"direction":0,"type":0,"date":1414583990,"duration":231},{"id":38,"direction":1,"type":0,"date":1414590100,"duration":59},{"id":0,"direction":1,"type":0,"date":1414590646,"duration":54},{"id":1,"direction":0,"type":0,"date":1414596132,"duration":36},{"id":4,"direction":1,"type":0,"date":1414598048,"duration":0},{"id":1,"direction":0,"type":0,"date":1414664446,"duration":64},{"id":1,"direction":1,"type":0,"date":1414687087,"duration":100},{"id":1,"direction":0,"type":0,"date":1414688261,"duration":55},{"id":4,"direction":1,"type":0,"date":1414745571,"duration":0},{"id":16,"direction":1,"type":0,"date":1414747705,"duration":3},{"id":0,"direction":1,"type":0,"date":1414747718,"duration":158},{"id":23,"direction":1,"type":0,"date":1414759073,"duration":693},{"id":1,"direction":1,"type":0,"date":1414771728,"duration":104},{"id":0,"direction":1,"type":0,"date":1414771905,"duration":39},{"id":1,"direction":1,"type":0,"date":1414778662,"duration":116},{"id":26,"direction":0,"type":0,"date":1414788758,"duration":56},{"id":26,"direction":2,"type":0,"date":1414790981,"duration":0},{"id":19,"direction":2,"type":0,"date":1414833500,"duration":0},{"id":4,"direction":1,"type":0,"date":1414833732,"duration":36},{"id":1,"direction":0,"type":0,"date":1414957087,"duration":365},{"id":1,"direction":1,"type":0,"date":1414993912,"duration":2},{"id":1,"direction":1,"type":0,"date":1414993984,"duration":2},{"id":1,"direction":1,"type":0,"date":1414994141,"duration":25},{"id":39,"direction":1,"type":0,"date":1415016543,"duration":0},{"id":3,"direction":0,"type":0,"date":1415016993,"duration":181},{"id":1,"direction":0,"type":0,"date":1415018002,"duration":326},{"id":15,"direction":1,"type":0,"date":1415103183,"duration":8},{"id":3,"direction":0,"type":0,"date":1415103600,"duration":38},{"id":4,"direction":1,"type":0,"date":1415104805,"duration":16},{"id":32,"direction":1,"type":0,"date":1415104851,"duration":50},{"id":15,"direction":0,"type":0,"date":1415104884,"duration":26},{"id":37,"direction":0,"type":0,"date":1415105205,"duration":48},{"id":1,"direction":0,"type":0,"date":1415108449,"duration":202},{"id":22,"direction":1,"type":0,"date":1415110842,"duration":106},{"id":22,"direction":1,"type":0,"date":1415110963,"duration":0},{"id":3,"direction":1,"type":0,"date":1415110973,"duration":4},{"id":3,"direction":0,"type":0,"date":1415111322,"duration":341},{"id":1,"direction":0,"type":0,"date":1415118683,"duration":75},{"id":26,"direction":0,"type":0,"date":1415124925,"duration":73},{"id":1,"direction":1,"type":0,"date":1415126903,"duration":217},{"id":3,"direction":0,"type":0,"date":1415186301,"duration":154},{"id":1,"direction":1,"type":0,"date":1415190426,"duration":0},{"id":15,"direction":1,"type":0,"date":1415190439,"duration":2},{"id":1,"direction":2,"type":0,"date":1415191083,"duration":0},{"id":1,"direction":1,"type":0,"date":1415191311,"duration":229},{"id":15,"direction":0,"type":0,"date":1415192249,"duration":37},{"id":3,"direction":2,"type":0,"date":1415196418,"duration":0},{"id":3,"direction":1,"type":0,"date":1415196601,"duration":120},{"id":40,"direction":2,"type":0,"date":1415198197,"duration":0},{"id":15,"direction":0,"type":0,"date":1415198336,"duration":129},{"id":1,"direction":2,"type":0,"date":1415205006,"duration":0},{"id":1,"direction":0,"type":0,"date":1415205561,"duration":16},{"id":1,"direction":1,"type":0,"date":1415208499,"duration":2},{"id":1,"direction":1,"type":0,"date":1415209341,"duration":12},{"id":1,"direction":0,"type":0,"date":1415209387,"duration":37},{"id":4,"direction":1,"type":0,"date":1415210851,"duration":37},{"id":0,"direction":0,"type":0,"date":1415211445,"duration":35},{"id":3,"direction":0,"type":0,"date":1415272093,"duration":61},{"id":3,"direction":1,"type":0,"date":1415272646,"duration":14},{"id":3,"direction":1,"type":0,"date":1415272723,"duration":115},{"id":2,"direction":0,"type":0,"date":1415280278,"duration":64},{"id":1,"direction":0,"type":0,"date":1415280634,"duration":40},{"id":1,"direction":1,"type":0,"date":1415287213,"duration":67},{"id":41,"direction":1,"type":0,"date":1415289742,"duration":0},{"id":41,"direction":1,"type":0,"date":1415289763,"duration":79},{"id":41,"direction":1,"type":0,"date":1415291255,"duration":29},{"id":1,"direction":1,"type":0,"date":1415295056,"duration":26},{"id":2,"direction":1,"type":0,"date":1415295347,"duration":0},{"id":1,"direction":1,"type":0,"date":1415295355,"duration":122},{"id":3,"direction":0,"type":0,"date":1415354323,"duration":24},{"id":1,"direction":0,"type":0,"date":1415364493,"duration":8},{"id":1,"direction":1,"type":0,"date":1415366709,"duration":2},{"id":1,"direction":0,"type":0,"date":1415369705,"duration":81},{"id":1,"direction":0,"type":0,"date":1415382822,"duration":10},{"id":1,"direction":1,"type":0,"date":1415387955,"duration":113},{"id":4,"direction":1,"type":0,"date":1415389593,"duration":26},{"id":23,"direction":1,"type":0,"date":1415389655,"duration":321},{"id":1,"direction":2,"type":0,"date":1415446107,"duration":0},{"id":1,"direction":2,"type":0,"date":1415450432,"duration":0},{"id":1,"direction":2,"type":0,"date":1415456676,"duration":0},{"id":1,"direction":1,"type":0,"date":1415457013,"duration":231},{"id":1,"direction":1,"type":0,"date":1415460835,"duration":44},{"id":42,"direction":1,"type":0,"date":1415468284,"duration":3},{"id":18,"direction":0,"type":0,"date":1415471589,"duration":32},{"id":1,"direction":0,"type":0,"date":1415481966,"duration":79},{"id":1,"direction":0,"type":0,"date":1415540328,"duration":291},{"id":1,"direction":0,"type":0,"date":1415545637,"duration":190},{"id":1,"direction":1,"type":0,"date":1415550795,"duration":37},{"id":23,"direction":0,"type":0,"date":1415563926,"duration":325},{"id":0,"direction":1,"type":0,"date":1415609677,"duration":0},{"id":11,"direction":0,"type":0,"date":1415613648,"duration":47},{"id":11,"direction":1,"type":0,"date":1415613718,"duration":337},{"id":35,"direction":1,"type":0,"date":1415614600,"duration":0},{"id":35,"direction":1,"type":0,"date":1415614641,"duration":19},{"id":16,"direction":2,"type":0,"date":1415728277,"duration":0},{"id":16,"direction":1,"type":0,"date":1415728891,"duration":81},{"id":23,"direction":0,"type":0,"date":1415794537,"duration":364},{"id":1,"direction":0,"type":0,"date":1415795551,"duration":324},{"id":16,"direction":0,"type":0,"date":1415795861,"duration":0},{"id":0,"direction":0,"type":0,"date":1415796369,"duration":42},{"id":43,"direction":1,"type":0,"date":1415798005,"duration":47},{"id":43,"direction":1,"type":0,"date":1415798067,"duration":45},{"id":43,"direction":1,"type":0,"date":1415798175,"duration":69},{"id":43,"direction":1,"type":0,"date":1415798258,"duration":391},{"id":16,"direction":0,"type":0,"date":1415802451,"duration":37},{"id":44,"direction":0,"type":0,"date":1415803000,"duration":329},{"id":1,"direction":0,"type":0,"date":1415805666,"duration":25},{"id":45,"direction":0,"type":0,"date":1415810549,"duration":112},{"id":46,"direction":0,"type":0,"date":1415867202,"duration":27},{"id":1,"direction":1,"type":0,"date":1415867969,"duration":0},{"id":1,"direction":2,"type":0,"date":1415868093,"duration":0},{"id":1,"direction":0,"type":0,"date":1415881768,"duration":294},{"id":47,"direction":2,"type":0,"date":1415894775,"duration":0},{"id":47,"direction":1,"type":0,"date":1415896115,"duration":24},{"id":1,"direction":0,"type":0,"date":1415897526,"duration":10},{"id":3,"direction":0,"type":0,"date":1415955360,"duration":26},{"id":45,"direction":1,"type":0,"date":1415961232,"duration":32},{"id":1,"direction":0,"type":0,"date":1415970249,"duration":226},{"id":48,"direction":0,"type":0,"date":1415974138,"duration":68},{"id":1,"direction":2,"type":0,"date":1415979691,"duration":0},{"id":1,"direction":1,"type":0,"date":1415980636,"duration":2},{"id":1,"direction":0,"type":0,"date":1415980680,"duration":115},{"id":1,"direction":0,"type":0,"date":1415992366,"duration":542},{"id":1,"direction":0,"type":0,"date":1416051116,"duration":284},{"id":1,"direction":2,"type":0,"date":1416060668,"duration":0},{"id":1,"direction":2,"type":0,"date":1416060788,"duration":0},{"id":4,"direction":1,"type":0,"date":1416060964,"duration":38},{"id":4,"direction":1,"type":0,"date":1416068198,"duration":34},{"id":15,"direction":0,"type":0,"date":1416150916,"duration":90},{"id":49,"direction":1,"type":0,"date":1416151061,"duration":44},{"id":1,"direction":0,"type":0,"date":1416215905,"duration":142},{"id":16,"direction":0,"type":0,"date":1416233024,"duration":47},{"id":1,"direction":2,"type":0,"date":1416237600,"duration":0},{"id":1,"direction":0,"type":0,"date":1416238040,"duration":93},{"id":1,"direction":1,"type":0,"date":1416241763,"duration":47},{"id":23,"direction":0,"type":0,"date":1416306058,"duration":52},{"id":2,"direction":1,"type":0,"date":1416306257,"duration":2},{"id":1,"direction":0,"type":0,"date":1416318110,"duration":301},{"id":0,"direction":0,"type":0,"date":1416325497,"duration":27},{"id":1,"direction":1,"type":0,"date":1416329168,"duration":9},{"id":1,"direction":1,"type":0,"date":1416331027,"duration":28},{"id":1,"direction":0,"type":0,"date":1416332418,"duration":411},{"id":1,"direction":2,"type":0,"date":1416384646,"duration":0},{"id":3,"direction":1,"type":0,"date":1416393129,"duration":4},{"id":45,"direction":1,"type":0,"date":1416393215,"duration":0},{"id":4,"direction":1,"type":0,"date":1416393242,"duration":1},{"id":45,"direction":1,"type":0,"date":1416393250,"duration":23},{"id":1,"direction":1,"type":0,"date":1416400267,"duration":2},{"id":1,"direction":0,"type":0,"date":1416400479,"duration":220},{"id":15,"direction":0,"type":0,"date":1416402034,"duration":98},{"id":15,"direction":2,"type":0,"date":1416402371,"duration":0},{"id":15,"direction":2,"type":0,"date":1416402437,"duration":0},{"id":15,"direction":0,"type":0,"date":1416402913,"duration":25},{"id":4,"direction":1,"type":0,"date":1416402947,"duration":48},{"id":0,"direction":1,"type":0,"date":1416405343,"duration":35},{"id":1,"direction":0,"type":0,"date":1416487128,"duration":51},{"id":16,"direction":0,"type":0,"date":1416495762,"duration":49},{"id":15,"direction":2,"type":0,"date":1416496361,"duration":0},{"id":15,"direction":2,"type":0,"date":1416496854,"duration":0},{"id":15,"direction":2,"type":0,"date":1416497258,"duration":0},{"id":1,"direction":0,"type":0,"date":1416498803,"duration":45},{"id":15,"direction":1,"type":0,"date":1416499263,"duration":20},{"id":1,"direction":1,"type":0,"date":1416499480,"duration":73},{"id":15,"direction":2,"type":0,"date":1416502090,"duration":0},{"id":3,"direction":0,"type":1,"date":1415016937,"duration":0},{"id":3,"direction":1,"type":1,"date":1415016967,"duration":0},{"id":3,"direction":0,"type":1,"date":1415089894,"duration":0},{"id":3,"direction":1,"type":1,"date":1415090384,"duration":0},{"id":3,"direction":1,"type":1,"date":1415090434,"duration":0},{"id":3,"direction":0,"type":1,"date":1415110791,"duration":0},{"id":3,"direction":1,"type":1,"date":1415132548,"duration":0},{"id":3,"direction":0,"type":1,"date":1415132624,"duration":0},{"id":3,"direction":0,"type":1,"date":1415132748,"duration":0},{"id":3,"direction":1,"type":1,"date":1415133139,"duration":0},{"id":3,"direction":0,"type":1,"date":1415133244,"duration":0},{"id":3,"direction":1,"type":1,"date":1415138012,"duration":0},{"id":3,"direction":0,"type":1,"date":1415138135,"duration":0},{"id":3,"direction":1,"type":1,"date":1415138161,"duration":0},{"id":3,"direction":0,"type":1,"date":1415173529,"duration":0},{"id":3,"direction":1,"type":1,"date":1415186249,"duration":0},{"id":3,"direction":0,"type":1,"date":1415186533,"duration":0},{"id":3,"direction":1,"type":1,"date":1415186586,"duration":0},{"id":3,"direction":1,"type":1,"date":1415271778,"duration":0},{"id":3,"direction":1,"type":1,"date":1415609759,"duration":0},{"id":3,"direction":0,"type":1,"date":1415609828,"duration":0},{"id":45,"direction":0,"type":1,"date":1415961172,"duration":0},{"id":3,"direction":1,"type":1,"date":1416050169,"duration":0},{"id":3,"direction":0,"type":1,"date":1416062311,"duration":0},{"id":3,"direction":1,"type":1,"date":1416063833,"duration":0},{"id":3,"direction":0,"type":1,"date":1416068116,"duration":0},{"id":3,"direction":1,"type":1,"date":1416068169,"duration":0},{"id":3,"direction":0,"type":1,"date":1416068294,"duration":0},{"id":3,"direction":1,"type":1,"date":1416068320,"duration":0},{"id":3,"direction":0,"type":1,"date":1416069591,"duration":0},{"id":3,"direction":1,"type":1,"date":1416072621,"duration":0},{"id":3,"direction":0,"type":1,"date":1416212474,"duration":0},{"id":3,"direction":1,"type":1,"date":1416212772,"duration":0},{"id":3,"direction":0,"type":1,"date":1416213002,"duration":0},{"id":3,"direction":1,"type":1,"date":1416331472,"duration":0},{"id":45,"direction":1,"type":1,"date":1416331561,"duration":0},{"id":45,"direction":0,"type":1,"date":1416331675,"duration":0},{"id":45,"direction":1,"type":1,"date":1416331698,"duration":0},{"id":3,"direction":0,"type":1,"date":1416335845,"duration":0},{"id":3,"direction":1,"type":1,"date":1416335875,"duration":0},{"id":45,"direction":1,"type":1,"date":1416412634,"duration":0},{"id":45,"direction":0,"type":1,"date":1416412684,"duration":0},{"id":3,"direction":1,"type":1,"date":1416472162,"duration":0},{"id":26,"direction":1,"type":0,"date":1416511357,"duration":0},{"id":1,"direction":1,"type":1,"date":1416524426,"duration":0},{"id":1,"direction":0,"type":1,"date":1416524491,"duration":0},{"id":1,"direction":1,"type":1,"date":1416524525,"duration":0},{"id":1,"direction":0,"type":1,"date":1416524545,"duration":0},{"id":1,"direction":1,"type":1,"date":1416524598,"duration":0},{"id":1,"direction":0,"type":1,"date":1416524674,"duration":0},{"id":1,"direction":0,"type":1,"date":1416528576,"duration":0},{"id":1,"direction":1,"type":1,"date":1416553622,"duration":0},{"id":1,"direction":1,"type":0,"date":1416553689,"duration":8},{"id":45,"direction":1,"type":1,"date":1416557566,"duration":0},{"id":45,"direction":0,"type":1,"date":1416559375,"duration":0},{"id":45,"direction":1,"type":1,"date":1416559589,"duration":0},{"id":50,"direction":1,"type":0,"date":1416560996,"duration":160},{"id":1,"direction":1,"type":0,"date":1416567729,"duration":2},{"id":1,"direction":0,"type":0,"date":1416567895,"duration":49},{"id":51,"direction":0,"type":0,"date":1416576513,"duration":8},{"id":16,"direction":0,"type":0,"date":1416577532,"duration":28},{"id":41,"direction":1,"type":0,"date":1416585090,"duration":20},{"id":1,"direction":0,"type":1,"date":1416585353,"duration":0},{"id":1,"direction":1,"type":1,"date":1416587020,"duration":0},{"id":0,"direction":0,"type":0,"date":1416590363,"duration":33},{"id":15,"direction":0,"type":0,"date":1416590496,"duration":79},{"id":0,"direction":0,"type":1,"date":1416597202,"duration":0},{"id":0,"direction":1,"type":1,"date":1416597227,"duration":0},{"id":16,"direction":0,"type":0,"date":1416600714,"duration":34},{"id":37,"direction":0,"type":0,"date":1416602768,"duration":145},{"id":1,"direction":0,"type":1,"date":1416611315,"duration":0},{"id":1,"direction":1,"type":1,"date":1416612036,"duration":0},{"id":1,"direction":0,"type":1,"date":1416612085,"duration":0},{"id":1,"direction":1,"type":1,"date":1416612941,"duration":0},{"id":1,"direction":0,"type":1,"date":1416613007,"duration":0},{"id":1,"direction":1,"type":0,"date":1416613446,"duration":518},{"id":16,"direction":0,"type":0,"date":1416615841,"duration":75},{"id":1,"direction":0,"type":1,"date":1416616206,"duration":0},{"id":3,"direction":1,"type":1,"date":1416645040,"duration":0},{"id":1,"direction":1,"type":0,"date":1416654588,"duration":2},{"id":1,"direction":0,"type":0,"date":1416654643,"duration":19},{"id":52,"direction":0,"type":1,"date":1416656610,"duration":0},{"id":52,"direction":1,"type":1,"date":1416656652,"duration":0},{"id":52,"direction":0,"type":1,"date":1416656686,"duration":0},{"id":52,"direction":1,"type":1,"date":1416656732,"duration":0},{"id":3,"direction":2,"type":0,"date":1416666989,"duration":0},{"id":3,"direction":1,"type":0,"date":1416668308,"duration":0},{"id":4,"direction":1,"type":0,"date":1416668334,"duration":71},{"id":3,"direction":1,"type":1,"date":1416668494,"duration":0},{"id":2,"direction":1,"type":0,"date":1416668738,"duration":29},{"id":2,"direction":0,"type":0,"date":1416669698,"duration":30},{"id":16,"direction":0,"type":0,"date":1416673656,"duration":78},{"id":16,"direction":0,"type":0,"date":1416674047,"duration":80},{"id":2,"direction":1,"type":0,"date":1416676744,"duration":1},{"id":16,"direction":1,"type":0,"date":1416676789,"duration":3},{"id":2,"direction":1,"type":0,"date":1416676847,"duration":1},{"id":16,"direction":0,"type":0,"date":1416676904,"duration":43},{"id":4,"direction":1,"type":0,"date":1416676900,"duration":55},{"id":19,"direction":0,"type":0,"date":1416677028,"duration":29},{"id":53,"direction":0,"type":1,"date":1416680159,"duration":0},{"id":53,"direction":1,"type":1,"date":1416680196,"duration":0},{"id":53,"direction":0,"type":1,"date":1416680230,"duration":0},{"id":1,"direction":0,"type":1,"date":1416680260,"duration":0},{"id":1,"direction":1,"type":1,"date":1416686905,"duration":0},{"id":1,"direction":0,"type":1,"date":1416686951,"duration":0},{"id":1,"direction":1,"type":1,"date":1416686983,"duration":0},{"id":11,"direction":2,"type":0,"date":1416738321,"duration":0},{"id":11,"direction":1,"type":1,"date":1416738608,"duration":0},{"id":11,"direction":0,"type":1,"date":1416738787,"duration":0},{"id":11,"direction":1,"type":1,"date":1416738812,"duration":0},{"id":1,"direction":1,"type":1,"date":1416746999,"duration":0},{"id":1,"direction":0,"type":1,"date":1416747026,"duration":0},{"id":1,"direction":1,"type":1,"date":1416747038,"duration":0},{"id":1,"direction":0,"type":1,"date":1416747088,"duration":0},{"id":1,"direction":1,"type":0,"date":1416747081,"duration":158},{"id":1,"direction":2,"type":0,"date":1416760949,"duration":0},{"id":1,"direction":1,"type":0,"date":1416760985,"duration":34},{"id":11,"direction":0,"type":0,"date":1416762959,"duration":4},{"id":11,"direction":1,"type":0,"date":1416762983,"duration":549},{"id":1,"direction":0,"type":1,"date":1416764674,"duration":0},{"id":1,"direction":1,"type":1,"date":1416764895,"duration":0},{"id":1,"direction":0,"type":1,"date":1416764961,"duration":0},{"id":1,"direction":1,"type":1,"date":1416764979,"duration":0},{"id":1,"direction":0,"type":1,"date":1416765004,"duration":0},{"id":1,"direction":2,"type":0,"date":1416765124,"duration":0},{"id":1,"direction":0,"type":0,"date":1416767055,"duration":22},{"id":1,"direction":1,"type":1,"date":1416815535,"duration":0},{"id":3,"direction":1,"type":1,"date":1416823508,"duration":0},{"id":3,"direction":0,"type":1,"date":1416824926,"duration":0},{"id":1,"direction":0,"type":1,"date":1416830359,"duration":0},{"id":1,"direction":1,"type":0,"date":1416831523,"duration":2},{"id":41,"direction":1,"type":0,"date":1416839307,"duration":35},{"id":1,"direction":1,"type":1,"date":1416845390,"duration":0},{"id":1,"direction":0,"type":1,"date":1416847320,"duration":0},{"id":1,"direction":1,"type":1,"date":1416847341,"duration":0},{"id":1,"direction":0,"type":1,"date":1416847407,"duration":0},{"id":1,"direction":1,"type":1,"date":1416847426,"duration":0},{"id":0,"direction":0,"type":0,"date":1416849095,"duration":53},{"id":1,"direction":1,"type":0,"date":1416853886,"duration":72},{"id":54,"direction":2,"type":0,"date":1416864680,"duration":0},{"id":4,"direction":1,"type":0,"date":1416901870,"duration":47},{"id":54,"direction":1,"type":1,"date":1416901982,"duration":0},{"id":3,"direction":1,"type":0,"date":1416913241,"duration":4},{"id":1,"direction":0,"type":1,"date":1416914388,"duration":0},{"id":1,"direction":1,"type":1,"date":1416914442,"duration":0},{"id":1,"direction":0,"type":0,"date":1416914467,"duration":104},{"id":3,"direction":0,"type":0,"date":1416915236,"duration":123},{"id":55,"direction":1,"type":0,"date":1416916711,"duration":23},{"id":55,"direction":1,"type":0,"date":1416917799,"duration":3},{"id":55,"direction":1,"type":0,"date":1416918868,"duration":43},{"id":3,"direction":0,"type":1,"date":1416919943,"duration":0},{"id":3,"direction":1,"type":1,"date":1416920486,"duration":0},{"id":16,"direction":0,"type":0,"date":1416924290,"duration":0},{"id":16,"direction":1,"type":1,"date":1416924343,"duration":0},{"id":55,"direction":1,"type":0,"date":1416924813,"duration":3},{"id":55,"direction":1,"type":0,"date":1416924847,"duration":2},{"id":55,"direction":1,"type":0,"date":1416924894,"duration":0},{"id":16,"direction":1,"type":0,"date":1416924901,"duration":19},{"id":55,"direction":1,"type":0,"date":1416924940,"duration":0},{"id":55,"direction":1,"type":0,"date":1416925209,"duration":0},{"id":1,"direction":1,"type":0,"date":1416929983,"duration":86},{"id":4,"direction":1,"type":0,"date":1416931930,"duration":145},{"id":3,"direction":1,"type":1,"date":1416935411,"duration":0},{"id":3,"direction":0,"type":1,"date":1416935611,"duration":0},{"id":1,"direction":0,"type":0,"date":1416936961,"duration":351},{"id":1,"direction":1,"type":1,"date":1416949208,"duration":0},{"id":1,"direction":0,"type":1,"date":1416949499,"duration":0},{"id":1,"direction":1,"type":1,"date":1416949536,"duration":0},{"id":1,"direction":0,"type":1,"date":1416949569,"duration":0},{"id":1,"direction":1,"type":1,"date":1416949620,"duration":0},{"id":1,"direction":0,"type":1,"date":1416949644,"duration":0},{"id":1,"direction":1,"type":1,"date":1416949838,"duration":0},{"id":1,"direction":1,"type":1,"date":1416949861,"duration":0},{"id":1,"direction":0,"type":1,"date":1416949921,"duration":0},{"id":1,"direction":1,"type":1,"date":1416949945,"duration":0},{"id":1,"direction":1,"type":1,"date":1416949963,"duration":0},{"id":1,"direction":0,"type":1,"date":1416949995,"duration":0},{"id":1,"direction":1,"type":1,"date":1416950109,"duration":0},{"id":1,"direction":0,"type":1,"date":1416950200,"duration":0},{"id":1,"direction":1,"type":1,"date":1416950414,"duration":0},{"id":1,"direction":1,"type":1,"date":1416952260,"duration":0},{"id":1,"direction":0,"type":0,"date":1416952328,"duration":88},{"id":1,"direction":1,"type":1,"date":1416952597,"duration":0},{"id":1,"direction":0,"type":1,"date":1416952643,"duration":0},{"id":1,"direction":1,"type":1,"date":1416952658,"duration":0},{"id":1,"direction":1,"type":1,"date":1416954993,"duration":0},{"id":1,"direction":0,"type":1,"date":1416955037,"duration":0},{"id":1,"direction":1,"type":1,"date":1416955051,"duration":0},{"id":1,"direction":0,"type":1,"date":1416960503,"duration":0},{"id":1,"direction":1,"type":1,"date":1416978195,"duration":0},{"id":1,"direction":1,"type":0,"date":1416978324,"duration":0},{"id":1,"direction":1,"type":1,"date":1416978482,"duration":0},{"id":55,"direction":1,"type":0,"date":1416991044,"duration":4},{"id":1,"direction":1,"type":1,"date":1416992245,"duration":0},{"id":3,"direction":1,"type":1,"date":1416993172,"duration":0},{"id":3,"direction":0,"type":1,"date":1416993466,"duration":0},{"id":3,"direction":1,"type":1,"date":1416993518,"duration":0},{"id":3,"direction":0,"type":1,"date":1416993580,"duration":0},{"id":16,"direction":2,"type":0,"date":1417000988,"duration":0},{"id":4,"direction":1,"type":0,"date":1417001420,"duration":30},{"id":2,"direction":1,"type":0,"date":1417001471,"duration":15},{"id":4,"direction":1,"type":0,"date":1417001770,"duration":17},{"id":1,"direction":1,"type":1,"date":1417007924,"duration":0},{"id":1,"direction":0,"type":1,"date":1417008002,"duration":0},{"id":56,"direction":0,"type":1,"date":1417012046,"duration":0},{"id":56,"direction":1,"type":1,"date":1417012326,"duration":0},{"id":56,"direction":0,"type":1,"date":1417012390,"duration":0},{"id":56,"direction":1,"type":1,"date":1417013556,"duration":0},{"id":56,"direction":0,"type":1,"date":1417013595,"duration":0},{"id":56,"direction":0,"type":1,"date":1417013639,"duration":0},{"id":56,"direction":0,"type":1,"date":1417013723,"duration":0},{"id":56,"direction":1,"type":1,"date":1417014481,"duration":0},{"id":56,"direction":0,"type":1,"date":1417014611,"duration":0},{"id":56,"direction":1,"type":1,"date":1417014780,"duration":0},{"id":56,"direction":0,"type":1,"date":1417014878,"duration":0},{"id":1,"direction":0,"type":0,"date":1417014879,"duration":0},{"id":56,"direction":1,"type":1,"date":1417014905,"duration":0},{"id":56,"direction":1,"type":1,"date":1417014912,"duration":0},{"id":56,"direction":0,"type":1,"date":1417014985,"duration":0},{"id":56,"direction":0,"type":1,"date":1417015029,"duration":0},{"id":56,"direction":1,"type":1,"date":1417015511,"duration":0},{"id":56,"direction":0,"type":1,"date":1417015874,"duration":0},{"id":56,"direction":1,"type":1,"date":1417015986,"duration":0},{"id":1,"direction":1,"type":0,"date":1417016568,"duration":66},{"id":6,"direction":1,"type":0,"date":1417023111,"duration":849},{"id":1,"direction":0,"type":0,"date":1417035510,"duration":17},{"id":1,"direction":0,"type":0,"date":1417035545,"duration":797},{"id":0,"direction":1,"type":0,"date":1417044819,"duration":0},{"id":57,"direction":1,"type":0,"date":1417079622,"duration":0},{"id":58,"direction":1,"type":0,"date":1417079737,"duration":0},{"id":58,"direction":1,"type":0,"date":1417079789,"duration":0},{"id":58,"direction":1,"type":0,"date":1417079837,"duration":0},{"id":57,"direction":1,"type":0,"date":1417079861,"duration":0},{"id":58,"direction":1,"type":0,"date":1417079968,"duration":0},{"id":58,"direction":1,"type":0,"date":1417080040,"duration":0},{"id":1,"direction":1,"type":1,"date":1417080118,"duration":0},{"id":1,"direction":0,"type":1,"date":1417080185,"duration":0},{"id":1,"direction":1,"type":1,"date":1417084948,"duration":0},{"id":3,"direction":0,"type":1,"date":1417088949,"duration":0},{"id":3,"direction":1,"type":1,"date":1417089020,"duration":0},{"id":3,"direction":0,"type":1,"date":1417089251,"duration":0},{"id":59,"direction":1,"type":0,"date":1417090250,"duration":52},{"id":60,"direction":1,"type":0,"date":1417091590,"duration":405},{"id":1,"direction":0,"type":1,"date":1417094670,"duration":0},{"id":1,"direction":1,"type":1,"date":1417094760,"duration":0},{"id":1,"direction":0,"type":1,"date":1417094809,"duration":0},{"id":1,"direction":1,"type":1,"date":1417094964,"duration":0},{"id":1,"direction":1,"type":0,"date":1417101987,"duration":21},{"id":1,"direction":2,"type":0,"date":1417102922,"duration":0},{"id":3,"direction":0,"type":0,"date":1417107632,"duration":79},{"id":58,"direction":1,"type":0,"date":1417171005,"duration":0},{"id":58,"direction":1,"type":0,"date":1417171038,"duration":0},{"id":57,"direction":1,"type":0,"date":1417171045,"duration":0},{"id":58,"direction":1,"type":0,"date":1417171152,"duration":0},{"id":58,"direction":1,"type":0,"date":1417171260,"duration":0},{"id":61,"direction":1,"type":0,"date":1417171306,"duration":88},{"id":62,"direction":1,"type":0,"date":1417171414,"duration":132},{"id":1,"direction":0,"type":0,"date":1417183836,"duration":135},{"id":1,"direction":1,"type":0,"date":1417190382,"duration":21},{"id":63,"direction":0,"type":1,"date":1417191841,"duration":0},{"id":63,"direction":1,"type":1,"date":1417195095,"duration":0},{"id":0,"direction":1,"type":1,"date":1417195872,"duration":0},{"id":45,"direction":1,"type":1,"date":1417196888,"duration":0},{"id":45,"direction":0,"type":1,"date":1417197089,"duration":0},{"id":45,"direction":1,"type":1,"date":1417197214,"duration":0},{"id":45,"direction":0,"type":1,"date":1417197261,"duration":0},{"id":45,"direction":1,"type":1,"date":1417197629,"duration":0},{"id":45,"direction":0,"type":1,"date":1417197661,"duration":0},{"id":0,"direction":1,"type":0,"date":1417197647,"duration":1},{"id":27,"direction":1,"type":1,"date":1417200280,"duration":0},{"id":27,"direction":0,"type":1,"date":1417200387,"duration":0},{"id":0,"direction":0,"type":1,"date":1417200553,"duration":0},{"id":0,"direction":0,"type":1,"date":1417200578,"duration":0},{"id":0,"direction":1,"type":1,"date":1417200633,"duration":0},{"id":0,"direction":0,"type":0,"date":1417200690,"duration":49},{"id":27,"direction":0,"type":1,"date":1417201409,"duration":0},{"id":27,"direction":1,"type":0,"date":1417201714,"duration":48},{"id":11,"direction":1,"type":1,"date":1417202149,"duration":0},{"id":1,"direction":0,"type":0,"date":1417203591,"duration":206},{"id":11,"direction":0,"type":1,"date":1417203887,"duration":0},{"id":0,"direction":1,"type":1,"date":1417206619,"duration":0},{"id":0,"direction":0,"type":1,"date":1417206676,"duration":0},{"id":0,"direction":1,"type":1,"date":1417206690,"duration":0},{"id":0,"direction":0,"type":1,"date":1417206914,"duration":0},{"id":0,"direction":0,"type":0,"date":1417206933,"duration":45},{"id":0,"direction":0,"type":0,"date":1417208042,"duration":18},{"id":27,"direction":1,"type":1,"date":1417210547,"duration":0},{"id":64,"direction":2,"type":0,"date":1417211215,"duration":0},{"id":63,"direction":0,"type":1,"date":1417251261,"duration":0},{"id":63,"direction":1,"type":1,"date":1417258076,"duration":0},{"id":1,"direction":0,"type":0,"date":1417266292,"duration":204},{"id":65,"direction":0,"type":0,"date":1417274763,"duration":18},{"id":31,"direction":1,"type":0,"date":1417276265,"duration":1},{"id":31,"direction":1,"type":0,"date":1417276689,"duration":1},{"id":31,"direction":1,"type":1,"date":1417276842,"duration":0},{"id":31,"direction":0,"type":0,"date":1417278054,"duration":97},{"id":2,"direction":1,"type":0,"date":1417278186,"duration":1},{"id":2,"direction":1,"type":0,"date":1417278239,"duration":1},{"id":1,"direction":1,"type":0,"date":1417278281,"duration":0},{"id":1,"direction":1,"type":0,"date":1417278286,"duration":0},{"id":2,"direction":1,"type":0,"date":1417278293,"duration":0},{"id":16,"direction":1,"type":0,"date":1417278355,"duration":2},{"id":16,"direction":0,"type":0,"date":1417278395,"duration":33},{"id":16,"direction":1,"type":0,"date":1417278438,"duration":51},{"id":31,"direction":1,"type":0,"date":1417281594,"duration":1},{"id":28,"direction":0,"type":0,"date":1417282336,"duration":53},{"id":1,"direction":0,"type":0,"date":1417295530,"duration":534},{"id":22,"direction":1,"type":0,"date":1417335890,"duration":0},{"id":22,"direction":1,"type":0,"date":1417340097,"duration":54},{"id":22,"direction":0,"type":0,"date":1417341619,"duration":79},{"id":1,"direction":1,"type":1,"date":1417352791,"duration":0},{"id":1,"direction":0,"type":1,"date":1417352844,"duration":0},{"id":1,"direction":1,"type":1,"date":1417361696,"duration":0},{"id":1,"direction":0,"type":0,"date":1417362047,"duration":152},{"id":1,"direction":0,"type":1,"date":1417369939,"duration":0},{"id":1,"direction":1,"type":1,"date":1417369955,"duration":0},{"id":1,"direction":0,"type":0,"date":1417370651,"duration":39},{"id":1,"direction":0,"type":1,"date":1417393900,"duration":0},{"id":3,"direction":0,"type":1,"date":1417420982,"duration":0},{"id":3,"direction":1,"type":1,"date":1417421035,"duration":0},{"id":1,"direction":0,"type":1,"date":1417429954,"duration":0},{"id":1,"direction":1,"type":1,"date":1417430003,"duration":0},{"id":28,"direction":0,"type":1,"date":1417435020,"duration":0},{"id":28,"direction":1,"type":1,"date":1417435062,"duration":0},{"id":16,"direction":0,"type":0,"date":1417440439,"duration":147},{"id":61,"direction":1,"type":0,"date":1417442368,"duration":22},{"id":60,"direction":1,"type":0,"date":1417442403,"duration":400},{"id":1,"direction":0,"type":0,"date":1417446898,"duration":150},{"id":66,"direction":1,"type":0,"date":1417452757,"duration":113},{"id":1,"direction":1,"type":1,"date":1417510732,"duration":0},{"id":1,"direction":0,"type":1,"date":1417511566,"duration":0},{"id":3,"direction":0,"type":0,"date":1417511541,"duration":31},{"id":66,"direction":1,"type":0,"date":1417511926,"duration":134},{"id":16,"direction":0,"type":0,"date":1417524557,"duration":80},{"id":1,"direction":0,"type":0,"date":1417540634,"duration":79},{"id":1,"direction":1,"type":0,"date":1417543301,"duration":633},{"id":16,"direction":1,"type":0,"date":1417547651,"duration":27},{"id":1,"direction":1,"type":1,"date":1417555112,"duration":0},{"id":1,"direction":0,"type":1,"date":1417555165,"duration":0},{"id":1,"direction":1,"type":1,"date":1417555201,"duration":0},{"id":1,"direction":0,"type":1,"date":1417555285,"duration":0},{"id":1,"direction":1,"type":1,"date":1417555323,"duration":0},{"id":1,"direction":0,"type":1,"date":1417555346,"duration":0},{"id":1,"direction":1,"type":1,"date":1417555398,"duration":0},{"id":1,"direction":0,"type":1,"date":1417555417,"duration":0},{"id":1,"direction":1,"type":1,"date":1417555465,"duration":0},{"id":1,"direction":1,"type":1,"date":1417556403,"duration":0},{"id":1,"direction":1,"type":1,"date":1417592264,"duration":0},{"id":1,"direction":0,"type":1,"date":1417592894,"duration":0},{"id":1,"direction":1,"type":1,"date":1417592950,"duration":0},{"id":2,"direction":1,"type":0,"date":1417596286,"duration":15},{"id":0,"direction":0,"type":0,"date":1417599245,"duration":60},{"id":45,"direction":0,"type":1,"date":1417599408,"duration":0},{"id":45,"direction":1,"type":1,"date":1417599458,"duration":0},{"id":45,"direction":0,"type":1,"date":1417599483,"duration":0},{"id":1,"direction":1,"type":0,"date":1417610615,"duration":210},{"id":0,"direction":0,"type":1,"date":1417616219,"duration":0},{"id":0,"direction":1,"type":1,"date":1417616282,"duration":0},{"id":45,"direction":1,"type":1,"date":1417622785,"duration":0},{"id":45,"direction":0,"type":1,"date":1417622822,"duration":0},{"id":19,"direction":0,"type":0,"date":1417624319,"duration":23},{"id":45,"direction":1,"type":1,"date":1417625024,"duration":0},{"id":45,"direction":0,"type":1,"date":1417625051,"duration":0}],"subject":"","contacts":[]} \ No newline at end of file diff --git a/view/input.php b/view/input.php index 3d37431..9f10c0f 100755 --- a/view/input.php +++ b/view/input.php @@ -45,14 +45,11 @@

Identifier l'enquêté

-

- -

@@ -76,9 +73,6 @@ - -
-
@@ -170,12 +164,9 @@

Identifier l'enquêté

-

- -

diff --git a/view/js/input-min.js b/view/js/input-min.js index 92e285d..2c89662 100644 --- a/view/js/input-min.js +++ b/view/js/input-min.js @@ -1,27 +1,24 @@ -function readableName(a,c,b){var e=c.length,d=b.length;return 0 switch firstname <-> lastname"),b=a.parentNode,a=b.children[8],b=b.children[10],e=a.value,a.value=b.value, -b.value=e;else if(b){console.log("> switch firstname+lastname -> username");b=a.parentNode;e=b.children[6];a=b.children[8];b=b.children[10];if(0 dynamic update"),cMiniManager.fieldsToStorage(),cFicheManager.fieldsToStorage(),cContactManager.fieldsToStorage(),cMatriceManager.fieldsToStorage(),cFicheManager.sync(),cMiniManager.sync(),cMiniManager.storageToFields(),cFicheManager.storageToFields(), -cMatriceManager.storageToFields(),(d||c)&&cContactManager.storageToFields()} +var cSubjectManager,cContactManager,cMiniManager,cFicheManager,cMatriceManager; +function cDynamicUpdate(b){var a=b instanceof Element,d=a&&"INPUT"==b.tagName&&"submit"==b.type,e=a&&"SPAN"==b.tagName&&("p_nav-mini"==b.parentNode.id||"p_nav-fiche"==b.parentNode.id),a=a&&"SPAN"==b.tagName&&"p_nav-contact"==b.parentNode.id;if(!d&&!e&&!a&&!0!==b)return!1;console.log("> dynamic update");cMiniManager.fieldsToStorage();cFicheManager.fieldsToStorage();cContactManager.fieldsToStorage();cMatriceManager.fieldsToStorage();cFicheManager.sync();cMiniManager.sync();cMiniManager.storageToFields(); +cFicheManager.storageToFields();cMatriceManager.storageToFields();(d||a)&&cContactManager.storageToFields()} include("/js/includes/input-phone-subject.js",function(){include("/js/includes/input-phone-contact.js",function(){include("/js/includes/input-phone-mini.js",function(){include("/js/includes/input-phone-fiche.js",function(){include("/js/includes/input-phone-matrice.js",function(){cSubjectManager=new inputPhoneSubject($('[data-sublink="phone"] article.subject-panel [data-name="tmp_id"]'),$('[data-sublink="phone"] article.subject-panel [data-name="number"]'),$('[data-sublink="phone"] article.subject-panel [data-name="username"]'), -$('[data-sublink="phone"] article.subject-panel [data-name="firstname"]'),$('[data-sublink="phone"] article.subject-panel [data-name="lastname"]'),$('[data-sublink="phone"] article.subject-panel [data-name="submit"]'));cSubjectManager.attach();cContactManager=new inputPhoneContact($('[data-sublink="phone"] article.contact-panel'),$('[data-sublink="phone"] #p_nav-contact'));cContactManager.attach(cDynamicUpdate);cMiniManager=new inputPhoneMini($('[data-sublink="phone"] article.mini-relation-panel'), -$('[data-sublink="phone"] #p_nav-mini'));cMiniManager.attach(cDynamicUpdate);cFicheManager=new inputPhoneFiche($('[data-sublink="phone"] article.relation-panel'),$('[data-sublink="phone"] #p_nav-fiche'));cFicheManager.attach(cDynamicUpdate);cMatriceManager=new inputPhoneMatrice($('[data-sublink="phone"] article.matrice-panel'));cMatriceManager.attach(cDynamicUpdate);$('[data-sublink="phone"] input#p_call_log-import[type="file"]').addEventListener("click",function(a){a.target.value=null},!1);$('[data-sublink="phone"] input#p_call_log-import[type="file"]').addEventListener("change", -function(a){a={path:"upload/call_log",phone_number:$('[data-sublink="phone"] #p_subject_phone_number').value,file:a.target.files[0]};api.send(a,function(a){console.log(a);var b=null;if(0!=a.ModuleError)9==a.ModuleError?Notification.error("Erreur","Il est n\u00e9cessaire de saisir les informations du sujet avant d'exporter son journal d'appel"):Notification.error("Erreur",a.ModuleError);else{b=Notification.info("Info","Chargement du journal d'appel");cSubjectManager.tmp_id.value=a.tmp_id;cSubjectManager.fieldsToStorage(); -cSubjectManager.storageToFields();for(var e=0;e GATHERING ALL DATA");cSubjectManager.fieldsToStorage();cContactManager.fieldsToStorage();cMiniManager.fieldsToStorage();cFicheManager.fieldsToStorage();if(!cSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du sujet"),!1;a=lsi["export"]("p_mini-fiches");var c=0,b;for(b in a)if(!isNaN(b)&&(c++,!a[b].valid))return Notification.warning("Attention","La fiche rapide "+c+" est incompl\u00e8te et/ou incorrecte"), -!1;b={path:"input/phone",subject:lsi["export"]("p_subject")[0],contacts:lsi["export"]("p_contacts"),mini:lsi["export"]("p_mini-fiches"),fiches:lsi["export"]("p_fiches"),matrice:lsi["export"]("p_matrice")[0]};api.send(b,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;console.log(a)},!1)},!1)})})})})});var fSubjectManager,fContactManager,fMiniManager,fFicheManager,fMatriceManager; -function fDynamicUpdate(a){var c=a instanceof Element,b=c&&"SPAN"==a.tagName&&"switch-left"==a.className,e=c&&"SPAN"==a.tagName&&"switch-both"==a.className,d=c&&"INPUT"==a.tagName&&"submit"==a.type,f=c&&"SPAN"==a.tagName&&("f_nav-mini"==a.parentNode.id||"f_nav-fiche"==a.parentNode.id),c=c&&"SPAN"==a.tagName&&"f_nav-contact"==a.parentNode.id;if(!(e||b||d||f||c)&&!0!==a)return!1;if(e)console.log("> switch firstname <-> lastname"),b=a.parentNode,a=b.children[2],b=b.children[3],e=a.value,a.value=b.value, -b.value=e;else if(b){console.log("> switch firstname+lastname -> username");b=a.parentNode;e=b.children[1];a=b.children[2];b=b.children[3];if(0 dynamic update"),fMiniManager.fieldsToStorage(),fFicheManager.fieldsToStorage(),fContactManager.fieldsToStorage(),fMatriceManager.fieldsToStorage(),fFicheManager.sync(),fMiniManager.sync(),fMiniManager.storageToFields(),fFicheManager.storageToFields(), -fMatriceManager.storageToFields(),(d||c)&&fContactManager.storageToFields()} -include("/js/includes/input-facebook-subject.js",function(){include("/js/includes/input-facebook-contact.js",function(){include("/js/includes/input-facebook-mini.js",function(){include("/js/includes/input-facebook-fiche.js",function(){include("/js/includes/input-facebook-matrice.js",function(){fSubjectManager=new inputFacebookSubject($('[data-sublink="facebook"] article.subject-panel [data-name="username"]'),$('[data-sublink="facebook"] article.subject-panel [data-name="firstname"]'),$('[data-sublink="facebook"] article.subject-panel [data-name="lastname"]'), -$('[data-sublink="facebook"] article.subject-panel [data-name="submit"]'));fSubjectManager.attach();fContactManager=new inputFacebookContact($('[data-sublink="facebook"] article.contact-panel'),$('[data-sublink="facebook"] #f_nav-contact'));fContactManager.attach(fDynamicUpdate);fMiniManager=new inputFacebookMini($('[data-sublink="facebook"] article.mini-relation-panel'),$('[data-sublink="facebook"] #f_nav-mini'));fMiniManager.attach(fDynamicUpdate);fFicheManager=new inputFacebookFiche($('[data-sublink="facebook"] article.relation-panel'), -$('[data-sublink="facebook"] #f_nav-fiche'));fFicheManager.attach(fDynamicUpdate);fMatriceManager=new inputFacebookMatrice($('[data-sublink="facebook"] article.matrice-panel'));fMatriceManager.attach(fDynamicUpdate);$('[data-sublink="facebook"] #f_clear-all').addEventListener("click",function(a){lsi.clear("f_subject");lsi.clear("f_contacts");lsi.clear("f_mini-fiches");lsi.clear("f_fiches");lsi.clear("f_matrice");fSubjectManager.storageToFields();fContactManager.storageToFields();fMiniManager.storageToFields(); -fFicheManager.storageToFields();fMatriceManager.storageToFields();Notification.success("OK","Les donn\u00e9es ont \u00e9t\u00e9 supprim\u00e9es")},!1);$('[data-sublink="facebook"] #f_export-all').addEventListener("click",function(a){Notification.info("INFORMATION","Lancement du t\u00e9l\u00e9chargement de la sauvegarde");a={subject:lsi["export"]("f_subject")[0],contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]}; -var c=$('[data-sublink="facebook"] #f_download-target');c.download="local-facebook-data.json";c.href="data:application/octet-stream,"+encodeURIComponent(JSON.stringify(a));c.click()},!1);$('[data-sublink="facebook"] #f_import-all').addEventListener("click",function(a){$('[data-sublink="facebook"] #f_local-upload').click()},!1);$('[data-sublink="facebook"] #f_local-upload').addEventListener("click",function(a){a.target.value=null},!1);$('[data-sublink="facebook"] #f_local-upload').addEventListener("change", -function(a){a={path:"upload/local_data",file:$('[data-sublink="facebook"] #f_local-upload').files[0]};api.send(a,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("Erreur",a.ModuleError),!1;lsi.set("f_subject",0,a.local_data.subject);lsi["import"]("f_contacts",a.local_data.contacts);lsi["import"]("f_mini-fiches",a.local_data.mini);lsi["import"]("f_fiches",a.local_data.fiches);lsi.set("f_matrice",0,a.local_data.matrice);fSubjectManager.storageToFields();fContactManager.storageToFields(); -fMatriceManager.storageToFields();fDynamicUpdate(!0)})},!1);$('[data-sublink="facebook"] #f_submit-all').addEventListener("click",function(a){console.log("> GATHERING ALL DATA");fSubjectManager.fieldsToStorage();fContactManager.fieldsToStorage();fMiniManager.fieldsToStorage();fFicheManager.fieldsToStorage();if(!fSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du sujet"),!1;a=lsi["export"]("f_mini-fiches");var c=0,b;for(b in a)if(!isNaN(b)&& -(c++,!a[b].valid))return Notification.warning("Attention","La fiche rapide "+c+" est incompl\u00e8te et/ou incorrecte"),!1;b={path:"input/facebook",subject:lsi["export"]("f_subject")[0],contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]};api.send(b,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;console.log(a)},!1)},!1)})})})})}); +$('[data-sublink="phone"] article.subject-panel [data-name="submit"]'));cSubjectManager.attach();cContactManager=new inputPhoneContact($('[data-sublink="phone"] article.contact-panel'),$('[data-sublink="phone"] #p_nav-contact'));cContactManager.attach(cDynamicUpdate);cMiniManager=new inputPhoneMini($('[data-sublink="phone"] article.mini-relation-panel'),$('[data-sublink="phone"] #p_nav-mini'));cMiniManager.attach(cDynamicUpdate);cFicheManager=new inputPhoneFiche($('[data-sublink="phone"] article.relation-panel'), +$('[data-sublink="phone"] #p_nav-fiche'));cFicheManager.attach(cDynamicUpdate);cMatriceManager=new inputPhoneMatrice($('[data-sublink="phone"] article.matrice-panel'));cMatriceManager.attach(cDynamicUpdate);$('[data-sublink="phone"] input#p_call_log-import[type="file"]').addEventListener("click",function(b){b.target.value=null},!1);$('[data-sublink="phone"] input#p_call_log-import[type="file"]').addEventListener("change",function(b){b={path:"upload/call_log",phone_number:$('[data-sublink="phone"] #p_subject_phone_number').value, +file:b.target.files[0]};api.send(b,function(a){console.log(a);var b=null;if(0!=a.ModuleError)9==a.ModuleError?Notification.error("Erreur","Il est n\u00e9cessaire de saisir les informations du sujet avant d'exporter son journal d'appel"):Notification.error("Erreur",a.ModuleError);else{b=Notification.info("Info","Chargement du journal d'appel");cSubjectManager.tmp_id.value=a.tmp_id;cSubjectManager.fieldsToStorage();cSubjectManager.storageToFields();for(var e=0;e GATHERING ALL DATA");cSubjectManager.fieldsToStorage();cContactManager.fieldsToStorage();cMiniManager.fieldsToStorage();cFicheManager.fieldsToStorage();if(!cSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du sujet"),!1;b=lsi["export"]("p_mini-fiches");var a=0,d;for(d in b)if(!isNaN(d)&&(a++,!b[d].valid))return Notification.warning("Attention", +"La fiche rapide "+a+" est incompl\u00e8te et/ou incorrecte"),!1;d={path:"input/phone",subject:lsi["export"]("p_subject")[0],contacts:lsi["export"]("p_contacts"),mini:lsi["export"]("p_mini-fiches"),fiches:lsi["export"]("p_fiches"),matrice:lsi["export"]("p_matrice")[0]};api.send(d,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;console.log(a)},!1)},!1)})})})})});var fSubjectManager,fContactManager,fMiniManager,fFicheManager,fMatriceManager; +function fDynamicUpdate(b){var a=b instanceof Element,d=a&&"INPUT"==b.tagName&&"submit"==b.type,e=a&&"SPAN"==b.tagName&&("f_nav-mini"==b.parentNode.id||"f_nav-fiche"==b.parentNode.id),a=a&&"SPAN"==b.tagName&&"f_nav-contact"==b.parentNode.id;if(!d&&!e&&!a&&!0!==b)return!1;console.log("> dynamic update");fMiniManager.fieldsToStorage();fFicheManager.fieldsToStorage();fContactManager.fieldsToStorage();fMatriceManager.fieldsToStorage();fFicheManager.sync();fMiniManager.sync();fMiniManager.storageToFields(); +fFicheManager.storageToFields();fMatriceManager.storageToFields();(d||a)&&fContactManager.storageToFields()} +include("/js/includes/input-facebook-subject.js",function(){include("/js/includes/input-facebook-contact.js",function(){include("/js/includes/input-facebook-mini.js",function(){include("/js/includes/input-facebook-fiche.js",function(){include("/js/includes/input-facebook-matrice.js",function(){fSubjectManager=new inputFacebookSubject($('[data-sublink="facebook"] article.subject-panel [data-name="username"]'),$('[data-sublink="facebook"] article.subject-panel [data-name="submit"]'));fSubjectManager.attach(); +fContactManager=new inputFacebookContact($('[data-sublink="facebook"] article.contact-panel'),$('[data-sublink="facebook"] #f_nav-contact'));fContactManager.attach(fDynamicUpdate);fMiniManager=new inputFacebookMini($('[data-sublink="facebook"] article.mini-relation-panel'),$('[data-sublink="facebook"] #f_nav-mini'));fMiniManager.attach(fDynamicUpdate);fFicheManager=new inputFacebookFiche($('[data-sublink="facebook"] article.relation-panel'),$('[data-sublink="facebook"] #f_nav-fiche'));fFicheManager.attach(fDynamicUpdate); +fMatriceManager=new inputFacebookMatrice($('[data-sublink="facebook"] article.matrice-panel'));fMatriceManager.attach(fDynamicUpdate);$('[data-sublink="facebook"] #f_clear-all').addEventListener("click",function(b){lsi.clear("f_subject");lsi.clear("f_contacts");lsi.clear("f_mini-fiches");lsi.clear("f_fiches");lsi.clear("f_matrice");fSubjectManager.storageToFields();fContactManager.storageToFields();fMiniManager.storageToFields();fFicheManager.storageToFields();fMatriceManager.storageToFields();Notification.success("OK", +"Les donn\u00e9es ont \u00e9t\u00e9 supprim\u00e9es")},!1);$('[data-sublink="facebook"] #f_export-all').addEventListener("click",function(b){Notification.info("INFORMATION","Lancement du t\u00e9l\u00e9chargement de la sauvegarde");b={subject:lsi["export"]("f_subject")[0],contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]};var a=$('[data-sublink="facebook"] #f_download-target');a.download="local-facebook-data.json"; +a.href="data:application/octet-stream,"+encodeURIComponent(JSON.stringify(b));a.click()},!1);$('[data-sublink="facebook"] #f_import-all').addEventListener("click",function(b){$('[data-sublink="facebook"] #f_local-upload').click()},!1);$('[data-sublink="facebook"] #f_local-upload').addEventListener("click",function(b){b.target.value=null},!1);$('[data-sublink="facebook"] #f_local-upload').addEventListener("change",function(b){b={path:"upload/local_data",file:$('[data-sublink="facebook"] #f_local-upload').files[0]}; +api.send(b,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("Erreur",a.ModuleError),!1;lsi.set("f_subject",0,a.local_data.subject);lsi["import"]("f_contacts",a.local_data.contacts);lsi["import"]("f_mini-fiches",a.local_data.mini);lsi["import"]("f_fiches",a.local_data.fiches);lsi.set("f_matrice",0,a.local_data.matrice);fSubjectManager.storageToFields();fContactManager.storageToFields();fMatriceManager.storageToFields();fDynamicUpdate(!0)})},!1);$('[data-sublink="facebook"] #f_submit-all').addEventListener("click", +function(b){console.log("> GATHERING ALL DATA");fSubjectManager.fieldsToStorage();fContactManager.fieldsToStorage();fMiniManager.fieldsToStorage();fFicheManager.fieldsToStorage();if(!fSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du sujet"),!1;b=lsi["export"]("f_mini-fiches");var a=0,d;for(d in b)if(!isNaN(d)&&(a++,!b[d].valid))return Notification.warning("Attention","La fiche rapide "+a+" est incompl\u00e8te et/ou incorrecte"), +!1;d={path:"input/facebook",subject:lsi["export"]("f_subject")[0],contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]};api.send(d,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;console.log(a)},!1)},!1)})})})})}); diff --git a/view/js/input.js b/view/js/input.js index 22ace3f..149b0dd 100644 --- a/view/js/input.js +++ b/view/js/input.js @@ -1,41 +1,3 @@ - -/* AFFICHE UN NOM EXPLICITE A PARTIR DE @u username, @f firstname, et @l lastname -* -*/ -function readableName(u, f, l){ - /* (1) On calcule les tailles des chaines */ - var ul = u.length, - fl = f.length, - ll = l.length; - - /* (2) Si @username n'est pas vide */ - if( ul > 0 ){ - - /* (3) Si @username+(@firstname et/ou @lastname) -> username (firstname lastname) */ - if( fl+ll > 0 ) - return u+' ('+(f+' '+l).trim()+')'; - - /* (4) Si @username uniquement -> username */ - else - return u; - - /* (5) Si pas @username */ - }else{ - - /* (6) Si @firstname et/ou @lastname -> firstname lastname*/ - if( fl+ll > 0 ) - return (f+' '+l).trim(); - - /* (7) Si rien -> Inconnu */ - else - return 'Inconnu'; - - } -} - - - - /*=========================================================*/ /*********** Gestion du formulaire téléphonique ************/ /*=========================================================*/ @@ -56,92 +18,46 @@ function cDynamicUpdate(target){ /* (0) Vérification de la cohérence de la @target ---------------------------------------------------------*/ var isElement = target instanceof Element; - var isSwitchLeft = isElement && target.tagName == 'SPAN' && target.className == 'switch-left'; - var isSwitchBoth = isElement && target.tagName == 'SPAN' && target.className == 'switch-both'; var isSaveButton = isElement && target.tagName == 'INPUT' && target.type == 'submit'; var isNavButton = isElement && target.tagName == 'SPAN' && (target.parentNode.id == 'p_nav-mini' || target.parentNode.id == 'p_nav-fiche'); var isNavContact = isElement && target.tagName == 'SPAN' && target.parentNode.id == 'p_nav-contact'; // Si erreur, on retourne une erreur - if( !isSwitchBoth && !isSwitchLeft && !isSaveButton && !isNavButton && !isNavContact && target !== true ) + if( !isSaveButton && !isNavButton && !isNavContact && target !== true ) return false; - /* (1) Gestion de l'échange de nom/prénom - ---------------------------------------------------------*/ - if( isSwitchBoth ){ - console.log('> switch firstname <-> lastname'); - /* (1) On récupère le formulaire parent */ - var currentForm = target.parentNode; + console.log('> dynamic update'); - /* (2) On récupère Nom et Prénom */ - var firstname = currentForm.children[8]; - var lastname = currentForm.children[10]; + /* (1) On enregistre les MINI fiches relation */ + cMiniManager.fieldsToStorage(); - /* (3) On échange leurs valeurs */ - var tmp = firstname.value; - firstname.value = lastname.value; - lastname.value = tmp; + /* (2) On enregister les FICHES relation */ + cFicheManager.fieldsToStorage(); - }else if( isSwitchLeft ){ - /* (2) Gestion de l'échange Prénom+Nom = Pseudo - ---------------------------------------------------------*/ - console.log('> switch firstname+lastname -> username'); + /* (3) On enregistre les CONTACTS */ + cContactManager.fieldsToStorage(); - /* (1) On récupère le formulaire parent */ - var currentForm = target.parentNode; + /* (4) On enregistre la MATRICE */ + cMatriceManager.fieldsToStorage(); - /* (2) On récupère Pseudo, Nom et Prénom */ - var username = currentForm.children[6]; - var firstname = currentForm.children[8]; - var lastname = currentForm.children[10]; + /* (5) On synchronise les FICHE avec les CONTACTS */ + // 1. On synchronise les `mini` et `fiches` associées en fonction de la dernière date de modification + // 2. On synchronise les `fiches` dupliquées en fonction de la dernière date de modification + cFicheManager.sync(); - /* (3) Vérification de la validité */ - // Si pseudo pas vide, ou nom et prenom vide -> on ne fais rien - if( username.value.length > 0 || firstname.value.length == 0 && lastname.value.length == 0 ) - return false; + /* (6) On synchronise les MINI avec les CONTACTS */ + // Supprime les contacts déja dans les FICHES + cMiniManager.sync(); - /* (4) On attribue à Pseudo, la valeur de Prénom+Nom */ - username.value = firstname.value +' '+ lastname.value; - firstname.value = ''; - lastname.value = ''; + /* (7) On affiche le tout */ + cMiniManager.storageToFields(); + cFicheManager.storageToFields(); + cMatriceManager.storageToFields(); - - /* (3) Gestion de la mise à jour dynamique - ---------------------------------------------------------*/ - }else{ - console.log('> dynamic update'); - - /* (1) On enregistre les MINI fiches relation */ - cMiniManager.fieldsToStorage(); - - /* (2) On enregister les FICHES relation */ - cFicheManager.fieldsToStorage(); - - /* (3) On enregistre les CONTACTS */ - cContactManager.fieldsToStorage(); - - /* (4) On enregistre la MATRICE */ - cMatriceManager.fieldsToStorage(); - - /* (5) On synchronise les FICHE avec les CONTACTS */ - // 1. On synchronise les `mini` et `fiches` associées en fonction de la dernière date de modification - // 2. On synchronise les `fiches` dupliquées en fonction de la dernière date de modification - cFicheManager.sync(); - - /* (6) On synchronise les MINI avec les CONTACTS */ - // Supprime les contacts déja dans les FICHES - cMiniManager.sync(); - - /* (7) On affiche le tout */ - cMiniManager.storageToFields(); - cFicheManager.storageToFields(); - cMatriceManager.storageToFields(); - - /* (8) On met à jour les contacts si on les a modifié on si on navigue dans les contacts */ - if( isSaveButton || isNavContact ) - cContactManager.storageToFields(); - } + /* (8) On met à jour les contacts si on les a modifié on si on navigue dans les contacts */ + if( isSaveButton || isNavContact ) + cContactManager.storageToFields(); } @@ -173,8 +89,6 @@ include('/js/includes/input-phone-matrice.js', function(){ $('[data-sublink="phone"] article.subject-panel [data-name="tmp_id"]'), $('[data-sublink="phone"] article.subject-panel [data-name="number"]'), $('[data-sublink="phone"] article.subject-panel [data-name="username"]'), - $('[data-sublink="phone"] article.subject-panel [data-name="firstname"]'), - $('[data-sublink="phone"] article.subject-panel [data-name="lastname"]'), $('[data-sublink="phone"] article.subject-panel [data-name="submit"]') ); @@ -288,14 +202,10 @@ include('/js/includes/input-phone-matrice.js', function(){ // Données du cnotact var conData = response.directory[ response.call[i] ]; - var splittedName = conData.name.split(' '); - lsi.set('p_contacts', conData.id, { uid: conData.id, number: conData.number, - username: splittedName.length == 1 ? splittedName[0] : '', // Si un seul mot -> pseudo - firstname: splittedName.length > 1 ? splittedName[0] : '', // Si plusieurs mots -> le 1er est le prénom - lastname: splittedName.length > 1 ? splittedName.splice(1).join(' ') : '', // et les autres sont le nom + username: conData.name, // nom countsms: conData.sms, // Nombre de sms countcall: conData.call, // Nombre d'appels call: i, // classement dans le top 10 des APPELS @@ -321,15 +231,11 @@ include('/js/includes/input-phone-matrice.js', function(){ continue; } - var splittedName = conData.name.split(' '); - lsi.set('p_contacts', conData.id, { uid: conData.id, number: conData.number, - username: splittedName.length == 1 ? splittedName[0] : '', // Si un seul mot -> pseudo - firstname: splittedName.length > 1 ? splittedName[0] : '', // Si plusieurs mots -> le 1er est le prénom - lastname: splittedName.length > 1 ? splittedName.splice(1).join(' ') : '', // et les autres sont le nom + username: conData.name, // nom countsms: conData.sms, // Nombre de sms countcall: conData.call, // Nombre d'appels call: -1, // classement dans le top 10 des APPELS @@ -354,16 +260,11 @@ include('/js/includes/input-phone-matrice.js', function(){ // On récupère les données du contact var conData = response.directory[id]; - // On découpe le nom par espaces - var splittedName = conData.name.split(' '); - lsi.set('p_contacts', conData.id, { uid: conData.id, number: conData.number, - username: splittedName.length == 1 ? splittedName[0] : '', // Si un seul mot -> pseudo - firstname: splittedName.length > 1 ? splittedName[0] : '', // Si plusieurs mots -> le 1er est le prénom - lastname: splittedName.length > 1 ? splittedName.splice(1).join(' ') : '', // et les autres sont le nom + username: conData.name, // nom countsms: conData.sms, // Nombre de sms countcall: conData.call, // Nombre d'appels call: -1, @@ -664,92 +565,46 @@ function fDynamicUpdate(target){ /* (0) Vérification de la cohérence de la @target ---------------------------------------------------------*/ var isElement = target instanceof Element; - var isSwitchLeft = isElement && target.tagName == 'SPAN' && target.className == 'switch-left'; - var isSwitchBoth = isElement && target.tagName == 'SPAN' && target.className == 'switch-both'; var isSaveButton = isElement && target.tagName == 'INPUT' && target.type == 'submit'; var isNavButton = isElement && target.tagName == 'SPAN' && (target.parentNode.id == 'f_nav-mini' || target.parentNode.id == 'f_nav-fiche'); var isNavContact = isElement && target.tagName == 'SPAN' && target.parentNode.id == 'f_nav-contact'; // Si erreur, on retourne une erreur - if( !isSwitchBoth && !isSwitchLeft && !isSaveButton && !isNavButton && !isNavContact && target !== true ) + if( !isSaveButton && !isNavButton && !isNavContact && target !== true ) return false; - /* (1) Gestion de l'échange de nom/prénom - ---------------------------------------------------------*/ - if( isSwitchBoth ){ - console.log('> switch firstname <-> lastname'); + console.log('> dynamic update'); - /* (1) On récupère le formulaire parent */ - var currentForm = target.parentNode; + /* (1) On enregistre les MINI fiches relation */ + fMiniManager.fieldsToStorage(); - /* (2) On récupère Nom et Prénom */ - var firstname = currentForm.children[2]; - var lastname = currentForm.children[3]; + /* (2) On enregister les FICHES relation */ + fFicheManager.fieldsToStorage(); - /* (3) On échange leurs valeurs */ - var tmp = firstname.value; - firstname.value = lastname.value; - lastname.value = tmp; + /* (3) On enregistre les CONTACTS */ + fContactManager.fieldsToStorage(); - }else if( isSwitchLeft ){ - /* (2) Gestion de l'échange Prénom+Nom = Pseudo - ---------------------------------------------------------*/ - console.log('> switch firstname+lastname -> username'); + /* (4) On enregistre la MATRICE */ + fMatriceManager.fieldsToStorage(); - /* (1) On récupère le formulaire parent */ - var currentForm = target.parentNode; + /* (5) On synchronise les FICHE avec les CONTACTS */ + // 1. On synchronise les `mini` et `fiches` associées en fonction de la dernière date de modification + // 2. On synchronise les `fiches` dupliquées en fonction de la dernière date de modification + fFicheManager.sync(); - /* (2) On récupère Pseudo, Nom et Prénom */ - var username = currentForm.children[1]; - var firstname = currentForm.children[2]; - var lastname = currentForm.children[3]; + /* (6) On synchronise les MINI avec les CONTACTS */ + // Supprime les contacts déja dans les FICHES + fMiniManager.sync(); - /* (3) Vérification de la validité */ - // Si pseudo pas vide, ou nom et prenom vide -> on ne fais rien - if( username.value.length > 0 || firstname.value.length == 0 && lastname.value.length == 0 ) - return false; + /* (7) On affiche le tout */ + fMiniManager.storageToFields(); + fFicheManager.storageToFields(); + fMatriceManager.storageToFields(); - /* (4) On attribue à Pseudo, la valeur de Prénom+Nom */ - username.value = firstname.value +' '+ lastname.value; - firstname.value = ''; - lastname.value = ''; + /* (8) On met à jour les contacts si on les a modifié on si on navigue dans les contacts */ + if( isSaveButton || isNavContact ) + fContactManager.storageToFields(); - - /* (3) Gestion de la mise à jour dynamique - ---------------------------------------------------------*/ - }else{ - console.log('> dynamic update'); - - /* (1) On enregistre les MINI fiches relation */ - fMiniManager.fieldsToStorage(); - - /* (2) On enregister les FICHES relation */ - fFicheManager.fieldsToStorage(); - - /* (3) On enregistre les CONTACTS */ - fContactManager.fieldsToStorage(); - - /* (4) On enregistre la MATRICE */ - fMatriceManager.fieldsToStorage(); - - /* (5) On synchronise les FICHE avec les CONTACTS */ - // 1. On synchronise les `mini` et `fiches` associées en fonction de la dernière date de modification - // 2. On synchronise les `fiches` dupliquées en fonction de la dernière date de modification - fFicheManager.sync(); - - /* (6) On synchronise les MINI avec les CONTACTS */ - // Supprime les contacts déja dans les FICHES - fMiniManager.sync(); - - /* (7) On affiche le tout */ - fMiniManager.storageToFields(); - fFicheManager.storageToFields(); - fMatriceManager.storageToFields(); - - /* (8) On met à jour les contacts si on les a modifié on si on navigue dans les contacts */ - if( isSaveButton || isNavContact ) - fContactManager.storageToFields(); - } } @@ -779,8 +634,6 @@ include('/js/includes/input-facebook-matrice.js', function(){ /* (1) On crée une instance du manager du sujet */ fSubjectManager = new inputFacebookSubject( $('[data-sublink="facebook"] article.subject-panel [data-name="username"]'), - $('[data-sublink="facebook"] article.subject-panel [data-name="firstname"]'), - $('[data-sublink="facebook"] article.subject-panel [data-name="lastname"]'), $('[data-sublink="facebook"] article.subject-panel [data-name="submit"]') );