PageSourceSearch

https://autodropmachine.com/angular/service/Service.js?v=12311122

js autodropmachine.com collected 2026-10-02 01:24:08 UTC 106,585 bytes, 3,551 lines download raw bytes

1
2
3app.service('Service', function ($http, $q) {
4
5
6    
7    this.GetAffiliateUsers = function (data) {
8
9        return $http({
10            url: domain + "Service/AffiliateWebService.asmx/GetAffiliateUsers",
11            dataType: 'json',
12            method: 'POST',
13            data: data,
14            headers: { "Content-Type": "application/json" }
15        })
16
17             .then(
18              function (response) {
19                  console.log(response)
20
21                  return response.data.d;
22              },
23              function (httpError) {
24                  // translate the error
25                  var error;
26                  // LostConnection();
27              });
28
29
30    }
31    this.GetCouponByUserID = function () {
32
33        return $http({
34            url: domain + "Service/AffiliateWebService.asmx/GetCouponByUserID",
35            dataType: 'json',
36            method: 'POST',
37            data: "{}",
38            headers: { "Content-Type": "application/json" }
39        })
40
41             .then(
42              function (response) {
43                  console.log(response)
44
45                  return response.data.d;
46              },
47              function (httpError) {
48                  // translate the error
49                  var error;
50                  // LostConnection();
51              });
52
53
54    }
55    this.updateBulkTitle = function (param) {
56        var deferred = $q.defer();
57        var data = param
58        return $http({
59            url: domain + "service/ProductWebService.asmx/UpdateBulkTitle",
60            dataType: 'json',
61            method: 'POST',
62            data: data,
63            headers: { "Content-Type": "application/json" }
64        })
65
66              .then(
67               function (response) {
68                   console.log(response)
69                   deferred.resolve(response)
70                   return response.data.d;
71               },
72               function (httpError) {
73                   // translate the error
74                   var error;
75                   // LostConnection();
76               });
77
78        return deferred.promise;
79    }
80    this.GetBulkList = function (param) {
81        var deferred = $q.defer();
82        var data = param
83        return $http({
84            url: domain + "service/ProductWebService.asmx/NGetBulkList",
85            dataType: 'json',
86            method: 'POST',
87            data: data,
88            headers: { "Content-Type": "application/json" }
89        })
90
91              .then(
92               function (response) {
93                   console.log(response)
94                   deferred.resolve(response)
95                   return response.data.d;
96               },
97               function (httpError) {
98                   // translate the error
99                   var error;
100                   // LostConnection();
101               });
102
103        return deferred.promise;
104    }
105    
106    this.GetAffiliateUsersInTrialPeriod = function () {
107
108        return $http({
109            url: domain + "Service/AffiliateWebService.asmx/GetAffiliateUsersInTrialPeriod",
110            dataType: 'json',
111            method: 'POST',
112            data: "{}",
113            headers: { "Content-Type": "application/json" }
114        })
115
116              .then(
117               function (response) {
118                   console.log(response)
119
120                   return response.data.d;
121               },
122               function (httpError) {
123                   // translate the error
124                   var error;
125                   // LostConnection();
126               });
127
128        return deferred.promise;
129    }
130
131    this.GetPaymentAffiliateByUser = function () {
132      
133        return $http({
134            url: domain + "Service/AffiliateWebService.asmx/GetPaymentAffiliateByUser",
135            dataType: 'json',
136            method: 'POST',
137            data: "{}",
138            headers: { "Content-Type": "application/json" }
139        })
140
141              .then(
142               function (response) {
143                   console.log(response)
144                  
145                   return response.data.d;
146               },
147               function (httpError) {
148                   // translate the error
149                   var error;
150                   // LostConnection();
151               });
152
153        return deferred.promise;
154    }
155
156    this.GetPaymentAffiliateHistoryByUser = function () {
157
158        return $http({
159            url: domain + "service/AffiliateWebService.asmx/GetPaymentAffiliateHistoryByUser",
160            dataType: 'json',
161            method: 'POST',
162            data: "{}",
163            headers: { "Content-Type": "application/json" }
164        })
165
166              .then(
167               function (response) {
168                   console.log(response)
169                   
170                   return response.data.d;
171               },
172               function (httpError) {
173                   // translate the error
174                   var error;
175                   // LostConnection();
176               });
177
178      
179    }
180
181    this.getHistoryTrackingNumbers = function () {
182
183        return $http({
184            url: domain + "service/TrackingNumberWebService.asmx/GetHistoryTrackingNumbers",
185            dataType: 'json',
186            method: 'POST',
187            data: "{}",
188            headers: { "Content-Type": "application/json" }
189        })
190
191            .then(
192                function (response) {
193                    console.log(response)
194
195                    return response.data.d;
196                },
197                function (httpError) {
198                    // translate the error
199                    var error;
200                    // LostConnection();
201                });
202
203
204    }
205    
206    this.getTrackingNumber = function (param) {
207
208        return $http({
209            url: domain + "Service/TrackingNumberWebService.asmx/GetTrackingNumber",
210            dataType: 'json',
211            method: 'POST',
212            data: param,
213            headers: { "Content-Type": "application/json" }
214        })
215
216            .then(
217                function (response) {
218                    console.log(response)
219
220                    return response.data.d;
221                },
222                function (httpError) {
223                    // translate the error
224                    var error;
225                    // LostConnection();
226                });
227
228
229    }
230    this.GetUserSettings = function (param) {
231
232        return $http({
233            url:domain + "Service/UsersWebService.asmx/SGetUserSettings",
234            dataType: 'json',
235            method: 'POST',
236            data: {email:param},
237            headers: { "Content-Type": "application/json" }
238        })
239
240              .then(
241               function (response) {
242                   console.log(response)
243
244                   return response.data.d;
245               },
246               function (httpError) {
247                   // translate the error
248                   var error;
249                   // LostConnection();
250               });
251
252
253    }
254
255    
256    
257    this.ApplyChangeProductSupplier = function (param, param2) {
258        var data = { product: param, id: param2 };
259        return $http({
260            url: domain + "service/ProductWebService.asmx/ApplyChangeProductSupplier",
261            dataType: 'json',
262            method: 'POST',
263            data: data,
264            headers: { "Content-Type": "application/json" }
265        })
266
267              .then(
268               function (response) {
269                   console.log(response)
270
271                   return response.data.d;
272               },
273               function (httpError) {
274                   // translate the error
275                   var error;
276                   // LostConnection();
277               });
278
279
280    }
281
282    this.LoadProductAli = function (param) {
283        var data = { url: param };
284        return $http({
285            url: domain + "service/ProductWebService.asmx/LoadProductAli",
286            dataType: 'json',
287            method: 'POST',
288            data: data,
289            headers: { "Content-Type": "application/json" }
290        })
291
292              .then(
293               function (response) {
294                   console.log(response)
295
296                   return response.data.d;
297               },
298               function (httpError) {
299                   // translate the error
300                   var error;
301                   // LostConnection();
302               });
303
304
305    }
306
307    this.LoadProductAmazon = function (param) {
308        var data = { url: param };
309        return $http({
310            url: domain + "service/ProductWebService.asmx/LoadProductAmazon",
311            dataType: 'json',
312            method: 'POST',
313            data: data,
314            headers: { "Content-Type": "application/json" }
315        })
316
317              .then(
318               function (response) {
319                   console.log(response)
320
321                   return response.data.d;
322               },
323               function (httpError) {
324                   // translate the error
325                   var error;
326                   // LostConnection();
327               });
328
329
330    }
331
332    this.SaveImportProducts = function (param, fromWebsite) {
333        var data = { products: param, fromWebsite: fromWebsite };
334        return $http({
335            url: domain + "service/ProductWebService.asmx/SaveImportProducts",
336            dataType: 'json',
337            method: 'POST',
338            data: data,
339            headers: { "Content-Type": "application/json" }
340        })
341
342              .then(
343               function (response) {
344                   console.log(response)
345
346                   return response.data.d;
347               },
348               function (httpError) {
349                   // translate the error
350                   var error;
351                   // LostConnection();
352               });
353
354
355    }
356    this.SaveTemplate = function (email, param) {
357        var data = { email: '', templateHTML: param };
358        return $http({
359            url: domain + "service/UsersWebService.asmx/SaveTemplate",
360            dataType: 'json',
361            method: 'POST',
362            data: data,
363            headers: { "Content-Type": "application/json" }
364        })
365
366              .then(
367               function (response) {
368                   console.log(response)
369
370                   return response.data.d;
371               },
372               function (httpError) {
373                   // translate the error
374                   var error;
375                   // LostConnection();
376               });
377
378
379    }
380
381    this.SaveMessage = function (  param) {
382        var data = { msg: param, token: '' };
383        return $http({
384            url: domain + "service/UsersWebService.asmx/SaveMessage",
385            dataType: 'json',
386            method: 'POST',
387            data: data,
388            headers: { "Content-Type": "application/json" }
389        })
390
391              .then(
392               function (response) {
393                   console.log(response)
394
395                   return response.data.d;
396               },
397               function (httpError) {
398                   // translate the error
399                   var error;
400                   // LostConnection();
401               });
402
403
404    }
405    
406    this.sendSMS = function (from, text, phone) {
407        var data = { from: from, text: text, phone: phone };
408        return $http({
409            url: domain + "service/OrdersWebService.asmx/sendSMS",
410            dataType: 'json',
411            method: 'POST',
412            data: data,
413            headers: { "Content-Type": "application/json" }
414        })
415
416              .then(
417               function (response) {
418                   console.log(response)
419
420                   return response.data.d;
421               },
422               function (httpError) {
423                   // translate the error
424                   var error;
425                   // LostConnection();
426               });
427
428
429    }
430    this.SaveTemplate = function (email, param) {
431        var data = { email: '', templateHTML: param };
432        return $http({
433            url: domain + "service/UsersWebService.asmx/SaveTemplate",
434            dataType: 'json',
435            method: 'POST',
436            data: data,
437            headers: { "Content-Type": "application/json" }
438        })
439
440              .then(
441               function (response) {
442                   console.log(response)
443
444                   return response.data.d;
445               },
446               function (httpError) {
447                   // translate the error
448                   var error;
449                   // LostConnection();
450               });
451
452
453    }
454
455
456    this.saveNoteById = function (email, id, note) {
457        var data = { id: id, email: email, note: note };
458        return $http({
459            url: domain + "service/OrderWebService.asmx/saveNoteById",
460            dataType: 'json',
461            method: 'POST',
462            data: data,
463            headers: { "Content-Type": "application/json" }
464        })
465
466              .then(
467               function (response) {
468                   console.log(response)
469
470                   return response.data.d;
471               },
472               function (httpError) {
473                   // translate the error
474                   var error;
475                   // LostConnection();
476               });
477
478
479    }
480    
481    this.GetMyAllOrders = function () {
482
483        return $http({
484            url: domain + "service/OrderWebService.asmx/GetMyAllOrders",
485            dataType: 'json',
486            method: 'POST',
487            data: "{}",
488            headers: { "Content-Type": "application/json" }
489        })
490
491              .then(
492               function (response) {
493                   console.log(response)
494
495                   return response.data.d;
496               },
497               function (httpError) {
498                   // translate the error
499                   var error;
500                   // LostConnection();
501               });
502
503
504    }
505
506    
507    this.GetMyOrders = function (data) {
508
509        return $http({
510            url: domain + "service/OrderWebService.asmx/GetOrdersWithFilter",
511            dataType: 'json',
512            method: 'POST',
513            data: data,
514            headers: { "Content-Type": "application/json" }
515        })
516
517              .then(
518               function (response) {
519                   console.log(response)
520
521                   return response.data.d;
522               },
523               function (httpError) {
524                   // translate the error
525                   var error;
526                   // LostConnection();
527               });
528
529
530    }
531
532
533    this.deleteMessageByID = function (id) {
534        var d = { id: id };
535        return $http({
536            url: domain + "service/UsersWebService.asmx/DeleteMessageByID",
537            dataType: 'json',
538            method: 'POST',
539            data: d,
540            headers: { "Content-Type": "application/json" }
541        })
542
543              .then(
544               function (response) {
545                   console.log(response)
546
547                   return response.data.d;
548               },
549               function (httpError) {
550                   // translate the error
551                   var error;
552                   // LostConnection();
553               });
554
555
556    }
557
558
559    this.deleteTemplate = function (id) {
560        var d = { id: id };
561        return $http({
562            url: domain + "service/UsersWebService.asmx/deleteTemplate",
563            dataType: 'json',
564            method: 'POST',
565            data: d,
566            headers: { "Content-Type": "application/json" }
567        })
568
569              .then(
570               function (response) {
571                   console.log(response)
572
573                   return response.data.d;
574               },
575               function (httpError) {
576                   // translate the error
577                   var error;
578                   // LostConnection();
579               });
580
581
582    }
583
584    this.GetSavedMessage = function (email) {
585        var d = { email: email };
586        return $http({
587            url: domain + "service/UsersWebService.asmx/GetSavedMessage",
588            dataType: 'json',
589            method: 'POST',
590            data: d,
591            headers: { "Content-Type": "application/json" }
592        })
593
594              .then(
595               function (response) {
596                   console.log(response)
597
598                   return response.data.d;
599               },
600               function (httpError) {
601                   // translate the error
602                   var error;
603                   // LostConnection();
604               });
605
606
607    }
608
609    this.GetAffiliateGrid = function () {
610
611        return $http({
612            url: domain + "service/AffiliateWebService.asmx/GetAffiliateGrid",
613            dataType: 'json',
614            method: 'POST',
615            data: "{}",
616            headers: { "Content-Type": "application/json" }
617        })
618
619              .then(
620               function (response) {
621                   console.log(response)
622
623                   return response.data.d;
624               },
625               function (httpError) {
626                   // translate the error
627                   var error;
628                   // LostConnection();
629               });
630
631
632    }
633    this.RequestForPayment = function () {
634         
635        return $http({
636            url: domain + "service/AffiliateWebService.asmx/RequestForPayment",
637            dataType: 'json',
638            method: 'POST',
639            data: "{}",
640            headers: { "Content-Type": "application/json" }
641        })
642
643              .then(
644               function (response) {
645                   console.log(response)
646                   
647                   return response.data.d;
648               },
649               function (httpError) {
650                   // translate the error
651                   var error;
652                   // LostConnection();
653               });
654
655    
656    }
657
658    
659    this.GetYearByMonthRegisters = function () {
660        var data={allYear:false};
661        return $http({
662            url: domain + "service/AffiliateWebService.asmx/GetYearByMonthRegisters",
663            dataType: 'json',
664            data:data,
665            method: 'POST',
666            headers: { "Content-Type": "application/json" }
667        })
668
669              .then(
670               function (response) {
671                   console.log(response)
672                   
673                   return response.data.d;
674               },
675               function (httpError) {
676                   // translate the error
677                   var error;
678                   // LostConnection();
679               });
680
681         
682    }
683
684
685
686    this.GetMyMonitorProducts = function (email) {
687        var deferred = $q.defer();
688        var data = { email: email }
689        return $http({
690            url: domain + "service/MonitorWebService.asmx/GetMyMonitorProducts",
691            dataType: 'json',
692            method: 'POST',
693            data: data,
694            headers: { "Content-Type": "application/json" }
695        })
696
697              .then(
698               function (response) {
699                   console.log(response)
700                   deferred.resolve(response)
701                   return response.data.d;
702               },
703               function (httpError) {
704                   // translate the error
705                   var error;
706                   // LostConnection();
707               });
708
709        return deferred.promise;
710    }
711
712    this.insertDeleteMontiorProduct = function (productID, isMontior, email) {
713        //  var  = 10;
714
715        var data = { email: email, productID: productID, isMontior: isMontior }
716        return $http({
717            url: domain + "service/MonitorWebService.asmx/InsertDeleteMontiorProduct",
718            dataType: 'json',
719            method: 'POST',
720            data: data,
721            headers: { "Content-Type": "application/json" }
722        })
723
724              .then(
725               function (response) {
726                   return response.data.d;
727
728               },
729               function (httpError) {
730                   // translate the error
731                   var error;
732                   // LostConnection();
733               });
734    }
735
736    this.WSForgetPassword = function (param) {
737
738
739
740
741     
742        return $http({
743            url:  'service/UsersWebService.asmx/ForgetPassword',
744            dataType: 'json',
745            method: 'POST',
746            data: "{'email':'" + param + "'}",
747            headers: { "Content-Type": "application/json" }
748        })
749            .then(
750               function (response) {
751                   return {
752                       ForgetPassword: response.data.d,
753                   };
754               },
755               function (httpError) {
756                   // translate the error
757                   var error;
758                   // LostConnection();
759               });
760    }
761
762    this.GetMyAsins = function (email) {
763        var deferred = $q.defer();
764
765        var data = { email: email }
766        return $http({
767            url: domain + "service/ProductWebService.asmx/GetMyAsins",
768            dataType: 'json',
769            method: 'POST',
770            data: data,
771            headers: { "Content-Type": "application/json" }
772        })
773
774              .then(
775               function (response) {
776                   deferred.resolve(response.data.d)
777                   return response.data.d;
778               },
779               function (httpError) {
780                   // translate the error
781                   var error;
782                   // LostConnection();
783               });
784        return deferred.promise;
785    }
786
787    this.GetProductsByAsin = function (email, asinID) {
788        //  var  = 10;
789
790        var data = { email: email, asinID: asinID   }
791        return $http({
792            url: domain + "service/ProductWebService.asmx/GetProductsByAsin",
793            dataType: 'json',
794            method: 'POST',
795            data: data,
796            headers: { "Content-Type": "application/json" }
797        })
798
799              .then(
800               function (response) {
801                   return {
802                       items: response.data.d,
803                   };
804               },
805               function (httpError) {
806                   // translate the error
807                   var error;
808                   // LostConnection();
809               });
810    }
811
812    this.AllProccessForFastSearch = function (email, suffixUrl) {
813        //  var  = 10;
814
815        var data = { email: email, suffixUrl: suffixUrl }
816        return $http({
817            url: domain + "service/ProductWebService.asmx/AllProccessForFastSearch",
818            dataType: 'json',
819            method: 'POST',
820            data: data,
821            headers: { "Content-Type": "application/json" }
822        })
823
824              .then(
825               function (response) {
826                   return {
827                       items: response.data.d,
828                   };
829
830               },
831               function (httpError) {
832                   // translate the error
833                   var error;
834                   // LostConnection();
835               });
836    }
837
838    this.CheckVeroCompany = function (title) {
839        //  var  = 10;
840
841        var data = {title:title}
842        return $http({
843            url:"http://www.megasaleboot.com/service/webEbay.asmx/CheckVeroCompany",
844            dataType: 'json',
845            method: 'POST',
846            data: data,
847            headers: { "Content-Type": "application/json" }
848        })
849
850              .then(
851               function (response) {
852                   return  
853                   response.data.d;
854                    
855               },
856               function (httpError) {
857                   // translate the error
858                   var error;
859                   // LostConnection();
860               });
861    }
862
863    this.insertVeroCompany = function (company) {
864        //  var  = 10;
865
866        var data = { company: company }
867        return $http({
868            url: "http://www.megasaleboot.com/service/webEbay.asmx/InsertVeroCompany",
869            dataType: 'json',
870            method: 'POST',
871            data: data,
872            headers: { "Content-Type": "application/json" }
873        })
874
875              .then(
876               function (response) {
877                   return {
878                       veroCompany: response.data.d,
879                   };
880               },
881               function (httpError) {
882                   // translate the error
883                   var error;
884                   // LostConnection();
885               });
886    }
887
888    this.Deactivate = function (productID) {
889        var deferred = $q.defer();
890        var data = { productID: productID }
891        return $http({
892            url: domain + "service/ProductWebService.asmx/DisactiveProduct",
893            dataType: 'json',
894            method: 'POST',
895            data: data,
896            headers: { "Content-Type": "application/json" }
897        })
898
899              .then(
900               function (response) {
901
902                   deferred.resolve(response.data.d)
903                   return response.data.d;
904               },
905               function (httpError) {
906                   // translate the error
907                   var error;
908                   // LostConnection();
909               });
910
911        return deferred.promise;
912    }
913    
914    this.GetMyProductsAll = function () {
915        var deferred = $q.defer();
916        return $http({
917            url: domain + "service/ProductWebService.asmx/GetMyProductsAll",
918            dataType: 'json',
919            method: 'POST',
920            data: "{}",
921            headers: { "Content-Type": "application/json" }
922        })
923
924              .then(
925               function (response) {
926                   console.log(response)
927                   deferred.resolve(response)
928                   return response.data.d;
929               },
930               function (httpError) {
931                   // translate the error
932                   var error;
933                   // LostConnection();
934               });
935
936        return deferred.promise;
937    }
938
939    this.CleanBulkList = function (param) {
940        //  var  = 10;
941
942        return $http({
943            url: domain + "service/ProductWebService.asmx/CleanBulkList",
944            dataType: 'json',
945            method: 'POST',
946            data: param,
947            headers: { "Content-Type": "application/json" }
948        })
949
950            .then(
951                function (response) {
952                    return response.data.d;
953
954
955                },
956                function (httpError) {
957                    // translate the error
958                    var error;
959                    // LostConnection();
960                });
961    }
962
963    
964    this.ProductXImages = function (param) {
965        //  var  = 10;
966
967        return $http({
968            url: domain + "service/ProductWebService.asmx/ProductXImages",
969            dataType: 'json',
970            method: 'POST',
971            data: param,
972            headers: { "Content-Type": "application/json" }
973        })
974
975            .then(
976                function (response) {
977                    return response.data.d;
978
979
980                },
981                function (httpError) {
982                    // translate the error
983                    var error;
984                    // LostConnection();
985                });
986    }
987    
988    this.updateOrderNumbers = function (param) {
989        //  var  = 10;
990
991        return $http({
992            url: domain + "service/OrderWebService.asmx/UpdateOrderNumbers",
993            dataType: 'json',
994            method: 'POST',
995            data: param,
996            headers: { "Content-Type": "application/json" }
997        })
998
999            .then(
1000                function (response) {
1001                    return response.data.d;
1002
1003
1004                },
1005                function (httpError) {
1006                    // translate the error
1007                    var error;
1008                    // LostConnection();
1009                });
1010    }
1011    this.updateStatus = function (param) {
1012        //  var  = 10;
1013
1014        return $http({
1015            url: domain + "service/OrderWebService.asmx/updateStatus",
1016            dataType: 'json',
1017            method: 'POST',
1018            data: param,
1019            headers: { "Content-Type": "application/json" }
1020        })
1021
1022            .then(
1023                function (response) {
1024                    return response.data.d;
1025
1026
1027                },
1028                function (httpError) {
1029                    // translate the error
1030                    var error;
1031                    // LostConnect
1031ion();
1032                });
1033    }
1034    this.updateTrackingNumber = function (param) {
1035        //  var  = 10;
1036
1037        return $http({
1038            url: domain + "service/OrderWebService.asmx/UpdateTrackingNumber",
1039            dataType: 'json',
1040            method: 'POST',
1041            data: param,
1042            headers: { "Content-Type": "application/json" }
1043        })
1044
1045            .then(
1046                function (response) {
1047                    return response.data.d;
1048
1049
1050                },
1051                function (httpError) {
1052                    // translate the error
1053                    var error;
1054                    // LostConnection();
1055                });
1056    }
1057
1058    this.DeleteSelectedOrders = function (param) {
1059        //  var  = 10;
1060
1061        return $http({
1062            url: domain + "service/OrderWebService.asmx/DeleteSelectedOrders",
1063            dataType: 'json',
1064            method: 'POST',
1065            data: param,
1066            headers: { "Content-Type": "application/json" }
1067        })
1068
1069            .then(
1070                function (response) {
1071                    return response.data.d;
1072
1073
1074                },
1075                function (httpError) {
1076                    // translate the error
1077                    var error;
1078                    // LostConnection();
1079                });
1080    }
1081
1082    this.DeleteSelectedBulks = function (param) {
1083        //  var  = 10;
1084
1085        return $http({
1086            url: domain + "service/ProductWebService.asmx/DeleteSelectedBulks",
1087            dataType: 'json',
1088            method: 'POST',
1089            data: param,
1090            headers: { "Content-Type": "application/json" }
1091        })
1092
1093            .then(
1094                function (response) {
1095                    return response.data.d;
1096
1097
1098                },
1099                function (httpError) {
1100                    // translate the error
1101                    var error;
1102                    // LostConnection();
1103                });
1104    }
1105    
1106    this.GetMyBulkAll = function () {
1107        var deferred = $q.defer();
1108        return $http({
1109            url: domain + "service/ProductWebService.asmx/GetMyBulkAll",
1110            dataType: 'json',
1111            method: 'POST',
1112            data: "{}",
1113            headers: { "Content-Type": "application/json" }
1114        })
1115
1116            .then(
1117                function (response) {
1118                    console.log(response)
1119                    deferred.resolve(response)
1120                    return response.data.d;
1121                },
1122                function (httpError) {
1123                    // translate the error
1124                    var error;
1125                    // LostConnection();
1126                });
1127
1128        return deferred.promise;
1129    }
1130
1131    this.GetMyProducts = function (param) {
1132        var deferred = $q.defer();       
1133        return $http({
1134            url: domain + "service/ProductWebService.asmx/NGetMyProducts",
1135            dataType: 'json',
1136            method: 'POST',
1137            data: param,
1138            headers: { "Content-Type": "application/json" }
1139        })
1140
1141              .then(
1142               function (response) {
1143                   console.log(response)
1144                   deferred.resolve(response)
1145                   return response.data.d;
1146               },
1147               function (httpError) {
1148                   // translate the error
1149                   var error;
1150                   // LostConnection();
1151               });
1152
1153        return deferred.promise;
1154    }
1155    this.check_login = function (email,pass) {
1156        //  var  = 10;
1157        var data = { email: email, Password:pass }
1158        return $http({
1159            url: domain + "Service/UsersWebService.asmx/checkLogin",
1160            dataType: 'json',
1161            method: 'POST',
1162            data: data,
1163            headers: { "Content-Type": "application/json" }
1164        })
1165
1166              .then(
1167               function (response) {
1168                   
1169                   return {
1170                       item: response.data.d,
1171                   };
1172               },
1173               function (httpError) {
1174                   // translate the error
1175                   
1176                   var error;
1177                   // LostConnection();
1178               });
1179    }
1180
1181    this.GetDataSearch = function (param) {
1182        return $http.post("service/WebServiceUser.asmx/GetSearchData", param)
1183              .then(
1184               function (response) {
1185                   return {
1186                       Meals: response.data.d,
1187                   };
1188               },
1189               function (httpError) {
1190                   // translate the error
1191                   var error;
1192                   // LostConnection();
1193               });
1194    }
1195    this.AmazonDetails = function (param) {
1196        //  var  = 10;
1197        var data = { item: param }
1198        return $http({
1199            url: config.serviceBase + "service/SearchProductsWebService.asmx/AmazonDetails",
1200            dataType: 'json',
1201            method: 'POST',
1202            data: data,
1203            headers: { "Content-Type": "application/json" }
1204        })
1205
1206              .then(
1207               function (response) {
1208                   return {
1209                       item: response.data.d,
1210                   };
1211               },
1212               function (httpError) {
1213                   // translate the error
1214                   var error;
1215                   // LostConnection();
1216               });
1217    }
1218
1219    this.GetProducts = function (param, page, location) {
1220        //  var  = 10;
1221        return $http({
1222            url: config.serviceBase + "service/SearchProductsWebService.asmx/GetProducts",
1223            dataType: 'json',
1224            method: 'POST',
1225            data: "{'keywords':'" + param + "'  ,'page':'" + page + "','location':'" + location + "'}",
1226            headers: { "Content-Type": "application/json" }
1227        })
1228
1229              .then(
1230               function (response) {
1231                   return {
1232                       items: response.data.d,
1233                   };
1234               },
1235               function (httpError) {
1236                   // translate the error
1237                   var error;
1238                   // LostConnection();
1239               });
1240    }
1241
1242    
1243
1244    
1245
1246    this.GetMultiQuickProducts = function () {
1247        //  var  = 10;
1248
1249
1250        return $http({
1251            url: config.serviceBase + "service/SearchProductsWebService.asmx/GetMultiQuickProducts",
1252            dataType: 'json',
1253            method: 'POST',
1254            data: "{}",
1255            headers: { "Content-Type": "application/json" }
1256        })
1257
1258              .then(
1259               function (response) {
1260                   return {
1261                       items: response.data.d,
1262                   };
1263               },
1264               function (httpError) {
1265                   // translate the error
1266                   var error;
1267                   // LostConnection();
1268               });
1269    }
1270    
1271    this.GetProductResearchInfo = function (items) {
1272        //  var  = 10;
1273        var data = { items: items  };
1274        return $http({
1275            url: config.serviceBase + "service/ResearchKeywords.asmx/GetProductResearchInfo",
1276            dataType: 'json',
1277            method: 'POST',
1278            data: data,
1279            headers: { "Content-Type": "application/json" }
1280        })
1281
1282              .then(
1283               function (response) {
1284                   
1285                   return {
1286                       obj: response.data.d,
1287                   };
1288                    
1289               },
1290               function (httpError) {
1291                   // translate the error
1292                   var error;
1293                   // LostConnection();
1294               });
1295    }
1296    this.GetProductResearch = function (param, suffixUrl) {
1297        //  var  = 10;
1298        var data = { product: param, suffixUrl: suffixUrl };
1299        return $http({
1300            url: config.serviceBase + "service/ResearchKeywords.asmx/GetProductResearch",
1301            dataType: 'json',
1302            method: 'POST',
1303            data: data,
1304            headers: { "Content-Type": "application/json" }
1305        })
1306
1307              .then(
1308               function (response) {
1309                   return {
1310                       items: response.data.d,
1311                   };
1312               },
1313               function (httpError) {
1314                   // translate the error
1315                   var error;
1316                   // LostConnection();
1317               });
1318    }
1319
1320    this.FindTheCheapestProduct = function (param, suffixUrl) {
1321        //  var  = 10;
1322        var data = { desc: param, suffixUrl: suffixUrl };
1323        return $http({
1324            url: config.serviceBase + "service/webEbay.asmx/FindTheCheapestProduct",
1325            dataType: 'json',
1326            method: 'POST',
1327            data:data,
1328            headers: { "Content-Type": "application/json" }
1329        })
1330
1331              .then(
1332               function (response) {
1333                   return {
1334                       items: response.data.d,
1335                   };
1336               },
1337               function (httpError) {
1338                   // translate the error
1339                   var error;
1340                   // LostConnection();
1341               });
1342    }
1343
1344    
1345    this.GetEbayListByProductDesc = function (param, WithSellerScore, WithProductInfo, WithSellThrough, suffixUrl, type) {
1346        //  var  = 10;
1347        if (type == null || type == '') {
1348            type = 'Amazon'
1349        }
1350        var data = { Desc: param, WithSellerScore: WithSellerScore, WithProductInfo: WithProductInfo, WithSellThrough: WithSellThrough, suffixUrl: suffixUrl, type: type }
1351        return $http({
1352            url: "service/webEbay.asmx/GetEbayListByProductDesc",
1353            dataType: 'json',
1354            method: 'POST',
1355            data: data,
1356            headers: { "Content-Type": "application/json" }
1357        })
1358
1359              .then(
1360               function (response) {
1361                   return {
1362                       items: response.data.d,
1363                   };
1364               },
1365               function (httpError) {
1366                   // translate the error
1367                   var error;
1368                   // LostConnection();
1369               });
1370    }
1371
1372    
1373    this.FindProductInWalmart = function (param) {
1374        //  var  = 10;
1375        var data = { itemx: param }
1376        return $http({
1377            url: "service/webEbay.asmx/FindProductInWalmart",
1378            dataType: 'json',
1379            method: 'POST',
1380            data: data,
1381            headers: { "Content-Type": "application/json" }
1382        })
1383
1384              .then(
1385               function (response) {
1386                   return {
1387                       items: response.data.d,
1388                   };
1389               },
1390               function (httpError) {
1391                   // translate the error
1392                   var error;
1393                   // LostConnection();
1394               });
1395    }
1396    this.FindProductInAmazon = function (param, suffixUrl) {
1397        //  var  = 10;
1398        var data = { itemx: param, suffixUrl: suffixUrl }
1399        return $http({
1400            url: "service/webEbay.asmx/FindProductInAmazon",
1401            dataType: 'json',
1402            method: 'POST',
1403            data: data,
1404            headers: { "Content-Type": "application/json" }
1405        })
1406
1407              .then(
1408               function (response) {
1409                   return {
1410                       items: response.data.d,
1411                   };
1412               },
1413               function (httpError) {
1414                   // translate the error
1415                   var error;
1416                   // LostConnection();
1417               });
1418    }
1419
1420
1421    this.GetEbayListByProductApi = function (param, WithSellerScore) {
1422        //  var  = 10;
1423        var data = { url: param, WithSellerScore: WithSellerScore }
1424        return $http({
1425            url: "service/webEbay.asmx/GetEbayListByProductApi",
1426            dataType: 'json',
1427            method: 'POST',
1428            data: data,
1429            headers: { "Content-Type": "application/json" }
1430        })
1431
1432              .then(
1433               function (response) {
1434                   return {
1435                       items: response.data.d,
1436                   };
1437               },
1438               function (httpError) {
1439                   // translate the error
1440                   var error;
1441                   // LostConnection();
1442               });
1443    }
1444    this.GetEbayListByProduct = function (param, WithSellerScore) {
1445        //  var  = 10;
1446        var data = { url: param, WithSellerScore: WithSellerScore }
1447        return $http({
1448            url: "service/webEbay.asmx/GetEbayListByProduct",
1449            dataType: 'json',
1450            method: 'POST',
1451            data: data,
1452            headers: { "Content-Type": "application/json" }
1453        })
1454
1455              .then(
1456               function (response) {
1457                   return {
1458                       items: response.data.d,
1459                   };
1460               },
1461               function (httpError) {
1462                   // translate the error
1463                   var error;
1464                   // LostConnection();
1465               });
1466    }
1467
1468    this.GetItemsInPage = function (param, page, suffixUrl) {
1469        //  var  = 10;
1470        var data = { seller: param, page: page, suffixUrl: suffixUrl }
1471        return $http({
1472            url: "service/webEbay.asmx/GetListBySellerPaging",
1473            dataType: 'json',
1474            method: 'POST',
1475            data: data,
1476            headers: { "Content-Type": "application/json" }
1477        })
1478
1479              .then(
1480               function (response) {
1481                   return {
1482                       obj: response.data.d,
1483                   };
1484               },
1485               function (httpError) {
1486                   // translate the error
1487                   var error;
1488                   // LostConnection();
1489               });
1490    }
1491
1492    
1493    this.InsertSaveSeller = function (sellerName,comment) {
1494        //  var  = 10;
1495        var data = { sellerName: sellerName, comment: comment }
1496        return $http({
1497            url: config.serviceBase + "service/SuspectedSellersApiService.asmx/InsertSaveSeller",
1498            dataType: 'json',
1499            method: 'POST',
1500            data: data,
1501            headers: { "Content-Type": "application/json" }
1502        })
1503
1504              .then(
1505               function (response) {
1506                   return {
1507                       obj: response.data.d,
1508                   };
1509               },
1510               function (httpError) {
1511                   // translate the error
1512                   var error;
1513                   // LostConnection();
1514               });
1515    }
1516    this.InsertSuspectedSellers = function (param) {
1517        //  var  = 10;
1518        var data = { seller: param }
1519        return $http({
1520            url: config.serviceBase + "service/SuspectedSellersApiService.asmx/InsertSuspectedSellers",
1521            dataType: 'json',
1522            method: 'POST',
1523            data: data,
1524            headers: { "Content-Type": "application/json" }
1525        })
1526
1527              .then(
1528               function (response) {
1529                   return {
1530                       obj: response.data.d,
1531                   };
1532               },
1533               function (httpError) {
1534                   // translate the error
1535                   var error;
1536                   // LostConnection();
1537               });
1538    }
1539    
1540
1541    
1542
1543    this.exportExcel = function (data) {
1544        //  var  = 10;
1545
1546        var arr = { arr: data }
1547        return $http({
1548            url: "../service/AddOnsWebService.asmx/exportExcel",
1549            dataType: 'json',
1550            method: 'POST',
1551            data: arr,
1552            headers: { "Content-Type": "application/json" }
1553        })
1554
1555              .then(
1556               function (response) {
1557                   return {
1558                       file: response.data.d,
1559                   };
1560               },
1561               function (httpError) {
1562                   // translate the error
1563                   var error;
1564                   // LostConnection();
1565               });
1566    }
1567
1568    this.GetEbayProductsClub = function () {
1569        //  var  = 10;
1570
1571        
1572        return $http({
1573            url: "../service/AddOnsWebService.asmx/GetEbayProductsClub",
1574            dataType: 'json',
1575            method: 'POST',
1576            data: "{}",
1577            headers: { "Content-Type": "application/json" }
1578        })
1579
1580              .then(
1581               function (response) {
1582                   return {
1583                       items: response.data.d,
1584                   };
1585               },
1586               function (httpError) {
1587                   // translate the error
1588                   var error;
1589                   // LostConnection();
1590               });
1591    }
1592    
1593    this.GetHRScanners = function () {
1594        //  var  = 10;
1595
1596
1597        return $http({
1598            url: "../service/AddOnsWebService.asmx/GetHRScanners",
1599            dataType: 'json',
1600            method: 'POST',
1601            data: "{}",
1602            headers: { "Content-Type": "application/json" }
1603        })
1604
1605              .then(
1606               function (response) {
1607                   return {
1608                       items: response.data.d,
1609                   };
1610               },
1611               function (httpError) {
1612                   // translate the error
1613                   var error;
1614                   // LostConnection();
1615               });
1616    }
1617
1618    this.GetAliExpressProducts = function () {
1619        //  var  = 10;
1620
1621
1622        return $http({
1623            url: "../service/AddOnsWebService.asmx/GetAliExpressProducts",
1624            dataType: 'json',
1625            method: 'POST',
1626            data: "{}",
1627            headers: { "Content-Type": "application/json" }
1628        })
1629
1630              .then(
1631               function (response) {
1632                   return {
1633                       items: response.data.d,
1634                   };
1635               },
1636               function (httpError) {
1637                   // translate the error
1638                   var error;
1639                   // LostConnection();
1640               });
1641    }
1642    this.GetQuickProducts = function () {
1643        //  var  = 10;
1644
1645
1646        return $http({
1647            url: "../service/AddOnsWebService.asmx/GetQuickProducts",
1648            dataType: 'json',
1649            method: 'POST',
1650            data: "{}",
1651            headers: { "Content-Type": "application/json" }
1652        })
1653
1654              .then(
1655               function (response) {
1656                   return {
1657                       items: response.data.d,
1658                   };
1659               },
1660               function (httpError) {
1661                   // translate the error
1662                   var error;
1663                   // LostConnection();
1664               });
1665    }
1666
1667    
1668    this.getSellThrough = function (param) {
1669        //  var  = 10;
1670
1671        var data = { Keyword: param }
1672        return $http({
1673            url: "service/ResearchKeywords.asmx/getSellThrough2",
1674            dataType: 'json',
1675            method: 'POST',
1676            data: data,
1677            headers: { "Content-Type": "application/json" }
1678        })
1679
1680              .then(
1681               function (response) {
1682                   return {
1683                       SellThrough: response.data.d,
1684                   };
1685               },
1686               function (httpError) {
1687                   // translate the error
1688                   var error;
1689                   // LostConnection();
1690               });
1691    }
1692
1693    this.GetNumberCompetitor = function (param) {
1694        //  var  = 10;
1695
1696        var data = { Keyword: param }
1697        return $http({
1698            url: "service/ResearchKeywords.asmx/GetNumberCompetitor",
1699            dataType: 'json',
1700            method: 'POST',
1701            data: data,
1702            headers: { "Content-Type": "application/json" }
1703        })
1704
1705              .then(
1706               function (response) {
1707                   return {
1708                       Competitors: response.data.d,
1709                   };
1710               },
1711               function (httpError) {
1712                   // translate the error
1713                   var error;
1714                   // LostConnection();
1715               });
1716    }
1717    
1718
1719    this.Contact = function (name,email,msg) {
1720        //  var  = 10;
1721
1722        var data = { name: name,email:email,msg:msg }
1723        return $http({
1724            url: "service/ContactWebService.asmx/Send_Contact",
1725            dataType: 'json',
1726            method: 'POST',
1727            data: data,
1728            headers: { "Content-Type": "application/json" }
1729        })
1730
1731              .then(
1732               function (response) {
1733                   return {
1734                       res: response.data.d,
1735                   };
1736               },
1737               function (httpError) {
1738                   // translate the error
1739                   var error;
1740                   // LostConnection();
1741               });
1742    }
1743
1744    this.searchKeywords = function (param) {
1745        //  var  = 10;
1746
1747        var data = { Keyword: param }
1748        return $http({
1749            url: "service/ResearchKeywords.asmx/search",
1750            dataType: 'json',
1751            method: 'POST',
1752            data: data,
1753            headers: { "Content-Type": "application/json" }
1754        })
1755
1756              .then(
1757               function (response) {
1758                   return {
1759                       items: response.data.d,
1760                   };
1761               },
1762               function (httpError) {
1763                   // translate the error
1764                   var error;
1765                   // LostConnection();
1766               });
1767    }
1768
1769    
1770    this.GetRelatedItems = function (param) {
1771        //  var  = 10;
1772
1773        var data = { asinNumber: param }
1774        return $http({
1775            url: "../service/ProductWebService.asmx/FindRelatedItems",
1776            dataType: 'json',
1777            method: 'POST',
1778            data: data,
1779            headers: { "Content-Type": "application/json" }
1780        })
1781
1782              .then(
1783               function (response) {
1784                   return {
1785                       items: response.data.d,
1786                   };
1787               },
1788               function (httpError) {
1789                   // translate the error
1790                   var error;
1791                   // LostConnection();
1792               });
1793    }
1794
1795    this.DeleteCouponProduct = function (param) {
1796        //  var  = 10;
1797        var data = { ID: param }
1798        return $http({
1799            url: "../service/AddOnsWebService.asmx/DeleteCouponProduct",
1800            dataType: 'json',
1801            method: 'POST',
1802            data: data,
1803            headers: { "Content-Type": "application/json" }
1804        })
1805
1806              .then(
1807               function (response) {
1808                   return {
1809                       DeleteProduct: response.data.d,
1810                   };
1811               },
1812               function (httpError) {
1813                   // translate the error
1814                   var error;
1815                   // LostConnection();
1816               });
1817    }
1818
1819    
1820    this.GetMyDiscountProducts = function () {
1821        //  var  = 10;
1822
1823        var data = {}
1824        return $http({
1825            url: "../service/AddOnsWebService.asmx/GetMyDiscountProducts",
1826            dataType: 'json',
1827            method: 'POST',
1828            data: "{}",
1829            headers: { "Content-Type": "application/json" }
1830        })
1831
1832              .then(
1833               function (response) {
1834                   return {
1835                       items: response.data.d,
1836                   };
1837               },
1838               function (httpError) {
1839                   // translate the error
1840                   var error;
1841                   // LostConnection();
1842               });
1843    }
1844    this.GetDiscountProducts = function ( ) {
1845        //  var  = 10;
1846
1847        var data = {  }
1848        return $http({
1849            url: "../service/AddOnsWebService.asmx/GetDiscountProducts",
1850            dataType: 'json',
1851            method: 'POST',
1852            data: "{}",
1853            headers: { "Content-Type": "application/json" }
1854        })
1855
1856              .then(
1857               function (response) {
1858                   return {
1859                       items: response.data.d,
1860                   };
1861               },
1862               function (httpError) {
1863                   // translate the error
1864                   var error;
1865                   // LostConnection();
1866               });
1867    }
1868    this.GetListBySpecialWalmart = function (param, addOnID,ID) {
1869        //  var  = 10;
1870
1871        var data = { url: param, AddOnID: addOnID ,ID:ID}
1872        return $http({
1873            url: "../service/webEbay.asmx/GetListBySpecialWalmart",
1874            dataType: 'json',
1875            method: 'POST',
1876            data: data,
1877            headers: { "Content-Type": "application/json" }
1878        })
1879
1880              .then(
1881               function (response) {
1882                   return {
1883                       items: response.data.d,
1884                   };
1885               },
1886               function (httpError) {
1887                   // translate the error
1888                   var error;
1889                   // LostConnection();
1890               });
1891    }
1892
1893    
1894    this.GetEbayListSpecialSearchScanner = function (param, addOnID) {
1895        //  var  = 10;
1896
1897        var data = { ASIN: param, AddOnID: addOnID }
1898        return $http({
1899            url: "../service/webEbay.asmx/GetEbayListSpecialSearchScanner",
1900            dataType: 'json',
1901            method: 'POST',
1902            data: data,
1903            headers: { "Content-Type": "application/json" }
1904        })
1905
1906              .then(
1907               function (response) {
1908                   return {
1909                       items: response.data.d,
1910                   };
1911               },
1912               function (httpError) {
1913                   // translate the error
1914                   var error;
1915                   // LostConnection();
1916               });
1917    }
1918    this.GetListBySpecial = function (param,addOnID) {
1919        //  var  = 10;
1920
1921        var data = { ASIN: param,  AddOnID: addOnID }
1922        return $http({
1923            url: "../service/webEbay.asmx/GetEbayListSpecialSearch",
1924            dataType: 'json',
1925            method: 'POST',
1926            data: data,
1927            headers: { "Content-Type": "application/json" }
1928        })
1929
1930              .then(
1931               function (response) {
1932                   return {
1933                       items: response.data.d,
1934                   };
1935               },
1936               function (httpError) {
1937                   // translate the error
1938                   var error;
1939                   // LostConnection();
1940               });
1941    }
1942
1943    this.GetListBySpecialCaptions = function (param, addOnID) {
1944        //  var  = 10;
1945
1946        var data = { ASIN: param, AddOnID: addOnID }
1947        return $http({
1948            url: "../service/webEbay.asmx/GetEbayListSpecialSearchCaptions",
1949            dataType: 'json',
1950            method: 'POST',
1951            data: data,
1952            headers: { "Content-Type": "application/json" }
1953        })
1954
1955              .then(
1956               function (response) {
1957                   return {
1958                       items: response.data.d,
1959                   };
1960               },
1961               function (httpError) {
1962                   // translate the error
1963                   var error;
1964                   // LostConnection();
1965               });
1966    }
1967
1968    this.PostDiscountProducts = function (arr) {
1969        //  var  = 10;
1970
1971        var data = { ProductsID: arr, }
1972        return $http({
1973            url: "../service/AddOnsWebService.asmx/PostDiscountProducts",
1974            dataType: 'json',
1975            method: 'POST',
1976            data: data,
1977            headers: { "Content-Type": "application/json" }
1978        })
1979
1980              .then(
1981               function (response) {
1982                   return {
1983                       items: response.data.d,
1984                   };
1985               },
1986               function (httpError) {
1987                   // translate the error
1988                   var error;
1989                   // LostConnection();
1990               });
1991    }
1992    this.GetListBySellerDeep2 = function (param, suffixUrl) {
1993        //  var  = 10;
1994
1995        var data = { seller: param, suffixUrl: suffixUrl }
1996        return $http({
1997            url: "../service/webEbay.asmx/GetListBySellerDeep",
1998            dataType: 'json',
1999            method: 'POST',
2000            data: data,
2001            headers: { "Content-Type": "application/json" }
2002        })
2003
2004              .then(
2005               function (response) {
2006                   return {
2007                       items: response.data.d,
2008                   };
2009               },
2010               function (httpError) {
2011                   // translate the error
2012                   var error;
2013                   // LostConnection();
2014               });
2015    }
2016    this.GetListBySellerDeep = function (param, suffixUrl) {
2017        //  var  = 10;
2018
2019        var data = { seller: param, suffixUrl: suffixUrl }
2020        return $http({
2021            url: "service/webEbay.asmx/GetListBySellerDeep",
2022            dataType: 'json',
2023            method: 'POST',
2024            data: data,
2025            headers: { "Content-Type": "application/json" }
2026        })
2027
2028              .then(
2029               function (response) {
2030                   return {
2031                       items: response.data.d,
2032                   };
2033               },
2034               function (httpError) {
2035                   // translate the error
2036                   var error;
2037                   // LostConnection();
2038               });
2039    }
2040
2041    this.GetListBySeller = function (param) {
2042        //  var  = 10;
2043
2044        var data = { seller: param }
2045        return $http({
2046            url: "service/webEbay.asmx/GetListBySeller",
2047            dataType: 'json',
2048            method: 'POST',
2049            data: data,
2050            headers: { "Content-Type": "application/json" }
2051        })
2052
2053              .then(
2054               function (response) {
2055                   return {
2056                       items: response.data.d,
2057                   };
2058               },
2059               function (httpError) {
2060                   // translate the error
2061                   var error;
2062                   // LostConnection();
2063               });
2064    }
2065
2066
2067    this.SaveProduct = function (param) {
2068        //  var  = 10;
2069        var data = { product: param }
2070        return $http({
2071            url: "service/ProductWebService.asmx/InsertProduct",
2072            dataType: 'json',
2073            method: 'POST',
2074            data: data,
2075            headers: { "Content-Type": "application/json" }
2076        })
2077
2078              .then(
2079               function (response) {
2080                   return {
2081                       SaveProduct: response.data.d,
2082                   };
2083               },
2084               function (httpError) {
2085                   // translate the error
2086                   var error;
2087                   // LostConnection();
2088               });
2089    }
2090    
2091    this.InsertUrl = function (url, AddOnID) {
2092        //  var  = 10;
2093        var data = { url: url, AddOnID: AddOnID }
2094        return $http({
2095            url: "../service/webEbay.asmx/InsertUrl",
2096            dataType: 'json',
2097            method: 'POST',
2098            data: data,
2099            headers: { "Content-Type": "application/json" }
2100        })
2101
2102              .then(
2103               function (response) {
2104                   return {
2105                       InsertUrl: response.data.d,
2106                   };
2107               },
2108               function (httpError) {
2109                   // translate the error
2110                   var error;
2111                   // LostConnection();
2112               });
2113    }
2114
2115
2116    this.InsertAsin = function (Asin, AddOnID, suffixUrl, MinSoldGeneral,Level) {
2117        //  var  = 10;
2118        if (Level == null) { Level ="advanced"}
2119        var data = { Asin: Asin, AddOnID: AddOnID, SuffixUrl: suffixUrl, MinSoldGeneral: MinSoldGeneral, Level: Level }
2120        return $http({
2121            url: "../service/webEbay.asmx/InsertAsin",
2122            dataType: 'json',
2123            method: 'POST',
2124            data: data,
2125            headers: { "Content-Type": "application/json" }
2126        })
2127
2128              .then(
2129               function (response) {
2130                   return {
2131                       InsertAsin: response.data.d,
2132                   };
2133               },
2134               function (httpError) {
2135                   // translate the error
2136                   var error;
2137                   // LostConnection();
2138               });
2139    }
2140
2141    
2142
2143
2144    this.InsertCaptions = function (suffixUrl, asins) {
2145        
2146        var data = { suffixUrl: suffixUrl, asins: asins }
2147        return $http({
2148            url: "../service/webEbay.asmx/InsertCaptions",
2149            dataType: 'json',
2150            method: 'POST',
2151            data: data,
2152            headers: { "Content-Type": "application/json" }
2153        })
2154
2155              .then(
2156               function (response) {
2157                   return {
2158                       InsertCaptions: response.data.d,
2159                   };
2160               },
2161               function (httpError) {
2162                   // translate the error
2163                   var error;
2164                   // LostConnection();
2165               });
2166    }
2167
2168    this.InsertSellerList = function (sellerName) {
2169        //  var  = 10;
2170       
2171        var data = { sellerName: sellerName  }
2172        return $http({
2173            url: "../service/AddOnsWebService.asmx/InsertSellerList",
2174            dataType: 'json',
2175            method: 'POST',
2176            data: data,
2177            headers: { "Content-Type": "application/json" }
2178        })
2179
2180              .then(
2181               function (response) {
2182                   return {
2183                       InsertSeller: response.data.d,
2184                   };
2185               },
2186               function (httpError) {
2187                   // translate the error
2188                   var error;
2189                   // LostConnection();
2190               });
2191    }
2192    this.SaveProductt = function (param) {
2193        //  var  = 10;
2194        var data = { product: param }
2195        return $http({
2196            url: "../service/ProductWebService.asmx/InsertProduct",
2197            dataType: 'json',
2198            method: 'POST',
2199            data: data,
2200            headers: { "Content-Type": "application/json" }
2201        })
2202
2203              .then(
2204               function (response) {
2205                   return {
2206                       SaveProduct: response.data.d,
2207                   };
2208               },
2209               function (httpError) {
2210                   // translate the error
2211                   var error;�
2211
2212                   // LostConnection();
2213               });
2214    }
2215    
2216   
2217
2218    this.DeleteProduct = function (param) {
2219        //  var  = 10;
2220        var data = { product: param }
2221        return $http({
2222            url: "service/ProductWebService.asmx/DeleteProduct",
2223            dataType: 'json',
2224            method: 'POST',
2225            data: data,
2226            headers: { "Content-Type": "application/json" }
2227        })
2228
2229              .then(
2230               function (response) {
2231                   return {
2232                       DeleteProduct: response.data.d,
2233                   };
2234               },
2235               function (httpError) {
2236                   // translate the error
2237                   var error;
2238                   // LostConnection();
2239               });
2240    }
2241    
2242    this.DeleteAsin = function (param) {
2243        //  var  = 10;
2244        var data = { DeleteAsin: param }
2245        return $http({
2246            url: "../service/AddOnsWebService.asmx/DeleteAsin",
2247            dataType: 'json',
2248            method: 'POST',
2249            data: data,
2250            headers: { "Content-Type": "application/json" }
2251        })
2252
2253              .then(
2254               function (response) {
2255                   return {
2256                       DeleteAsin: response.data.d,
2257                   };
2258               },
2259               function (httpError) {
2260                   // translate the error
2261                   var error;
2262                   // LostConnection();
2263               });
2264    }
2265
2266    this.DeleteSellerList = function (param) {
2267        //  var  = 10;
2268        var data = {sellerList: param }
2269        return $http({
2270            url: "../service/AddOnsWebService.asmx/DeleteSellerList",
2271            dataType: 'json',
2272            method: 'POST',
2273            data: data,
2274            headers: { "Content-Type": "application/json" }
2275        })
2276
2277              .then(
2278               function (response) {
2279                   return {
2280                       DeleteSellerList: response.data.d,
2281                   };
2282               },
2283               function (httpError) {
2284                   // translate the error
2285                   var error;
2286                   // LostConnection();
2287               });
2288    }
2289
2290    this.DeleteSeller = function (param) {
2291        //  var  = 10;
2292        var data = { SellerName: param }
2293        return $http({
2294            url: "service/SuspectedSellersApiService.asmx/DeleteSeller",
2295            dataType: 'json',
2296            method: 'POST',
2297            data: data,
2298            headers: { "Content-Type": "application/json" }
2299        })
2300
2301              .then(
2302               function (response) {
2303                   return {
2304                       DeleteSeller: response.data.d,
2305                   };
2306               },
2307               function (httpError) {
2308                   // translate the error
2309                   var error;
2310                   // LostConnection();
2311               });
2312    }
2313    
2314
2315    this.GetSellerInfo = function (param) {
2316        var deferred = $q.defer();
2317
2318        var data = { sellerName: param }
2319        return $http({
2320            url: "../service/webEbay.asmx/GetSellerInfo",
2321            dataType: 'json',
2322            method: 'POST',
2323            data: data,
2324            headers: { "Content-Type": "application/json" }
2325        })
2326
2327              .then(
2328               function (response) {
2329                   deferred.resolve(response.data.d)
2330                   return response.data.d;
2331
2332               },
2333               function (httpError) {
2334                   // translate the error
2335                   var error;
2336                   // LostConnection();
2337               });
2338        return deferred.promise;
2339    }
2340
2341
2342    this.GetCategoriesWeek = function (param) {
2343        var deferred = $q.defer();
2344
2345        var data = { addOn: param }
2346        return $http({
2347            url: "../service/ResearchKeywords.asmx/GetCategoriesWeek",
2348            dataType: 'json',
2349            method: 'POST',
2350            data: "{}",
2351            headers: { "Content-Type": "application/json" }
2352        })
2353
2354              .then(
2355               function (response) {
2356                   deferred.resolve(response.data.d)
2357                   return response.data.d;
2358
2359               },
2360               function (httpError) {
2361                   // translate the error
2362                   var error;
2363                   // LostConnection();
2364               });
2365        return deferred.promise;
2366    }
2367
2368
2369    this.GetCategoriesMonth = function (param) {
2370        var deferred = $q.defer();
2371
2372        var data = { addOn: param }
2373        return $http({
2374            url: "../service/ResearchKeywords.asmx/GetCategoriesMonth",
2375            dataType: 'json',
2376            method: 'POST',
2377            data: "{}",
2378            headers: { "Content-Type": "application/json" }
2379        })
2380
2381              .then(
2382               function (response) {
2383                   deferred.resolve(response.data.d)
2384                   return response.data.d;
2385
2386               },
2387               function (httpError) {
2388                   // translate the error
2389                   var error;
2390                   // LostConnection();
2391               });
2392        return deferred.promise;
2393    }
2394
2395    this.GetSavedSeller = function (param) {
2396        var deferred = $q.defer();
2397
2398        var data = { addOn: param }
2399        return $http({
2400            url: "../service/SuspectedSellersApiService.asmx/GetSavedSeller",
2401            dataType: 'json',
2402            method: 'POST',
2403            data: "{}",
2404            headers: { "Content-Type": "application/json" }
2405        })
2406
2407              .then(
2408               function (response) {
2409                   deferred.resolve(response.data.d)
2410                   return response.data.d;
2411
2412               },
2413               function (httpError) {
2414                   // translate the error
2415                   var error;
2416                   // LostConnection();
2417               });
2418        return deferred.promise;
2419    }
2420    
2421    this.GetMysearchesAliExpress = function () {
2422        var deferred = $q.defer();
2423
2424        var data = {}
2425        return $http({
2426            url: "../service/AddOnsWebService.asmx/GetMysearchesAliExpress",
2427            dataType: 'json',
2428            method: 'POST',
2429            data: {},
2430            headers: { "Content-Type": "application/json" }
2431        })
2432
2433              .then(
2434               function (response) {
2435                   deferred.resolve(response.data.d)
2436                   return response.data.d;
2437
2438               },
2439               function (httpError) {
2440                   // translate the error
2441                   var error;
2442                   // LostConnection();
2443               });
2444        return deferred.promise;
2445    }
2446    this.GetMyAsinsOnlyProducts = function (param) {
2447        var deferred = $q.defer();
2448
2449        var data = { addOnID: param }
2450        return $http({
2451            url: "../service/AddOnsWebService.asmx/GetMyAsinsOnlyProducts",
2452            dataType: 'json',
2453            method: 'POST',
2454            data: data,
2455            headers: { "Content-Type": "application/json" }
2456        })
2457
2458              .then(
2459               function (response) {
2460                   deferred.resolve(response.data.d)
2461                   return response.data.d;
2462
2463               },
2464               function (httpError) {
2465                   // translate the error
2466                   var error;
2467                   // LostConnection();
2468               });
2469        return deferred.promise;
2470    }
2471    
2472
2473    this.GetMySellersList= function (param) {
2474        var deferred = $q.defer();
2475
2476        var data = {  }
2477        return $http({
2478            url: "../service/AddOnsWebService.asmx/GetMySellersList",
2479            dataType: 'json',
2480            method: 'POST',
2481            data: "{}",
2482            headers: { "Content-Type": "application/json" }
2483        })
2484
2485              .then(
2486               function (response) {
2487                   deferred.resolve(response.data.d)
2488                   return response.data.d;
2489
2490               },
2491               function (httpError) {
2492                   // translate the error
2493                   var error;
2494                   // LostConnection();
2495               });
2496        return deferred.promise;
2497    }
2498
2499    this.GetMyUrls = function (param) {
2500        var deferred = $q.defer();
2501
2502        var data = { addOn: param }
2503        return $http({
2504            url: "../service/AddOnsWebService.asmx/GetMyUrls",
2505            dataType: 'json',
2506            method: 'POST',
2507            data: "{}",
2508            headers: { "Content-Type": "application/json" }
2509        })
2510
2511              .then(
2512               function (response) {
2513                   deferred.resolve(response.data.d)
2514                   return response.data.d;
2515
2516               },
2517               function (httpError) {
2518                   // translate the error
2519                   var error;
2520                   // LostConnection();
2521               });
2522        return deferred.promise;
2523    }
2524    this.Subscribe = function (param) {
2525       
2526
2527        var data = { addOn: param }
2528        return $http({
2529            url: "../service/AddOnsWebService.asmx/Subscribe",
2530            dataType: 'json',
2531            method: 'POST',
2532            data: data,
2533            headers: { "Content-Type": "application/json" }
2534        })
2535
2536              .then(
2537               function (response) {
2538                   return {
2539                       Subscribe: response.data.d,
2540                   };
2541               },
2542               function (httpError) {
2543                   // translate the error
2544                   var error;
2545                   // LostConnection();
2546               });
2547    }
2548
2549    this.GetMyAddOns = function () {
2550        var deferred = $q.defer();
2551        return $http({
2552            url: "../service/AddOnsWebService.asmx/GetMyAddOns",
2553            dataType: 'json',
2554            method: 'POST',
2555            data: "{}",
2556            headers: { "Content-Type": "application/json" }
2557        })
2558
2559              .then(
2560               function (response) {
2561
2562                   deferred.resolve(response.data.d)
2563                   return response.data.d;
2564               },
2565               function (httpError) {
2566                   // translate the error
2567                   var error;
2568                   // LostConnection();
2569               });
2570
2571        return deferred.promise;
2572    }
2573
2574    
2575
2576 
2577
2578    this.GetRandomMeals = function (param) {
2579        return $http({
2580            url: "service/WebServiceMeal.asmx/GetMeals",
2581            dataType: 'json',
2582            method: 'POST',
2583            data: "{'PageIndex':'" + param + "'}",
2584            headers: { "Content-Type": "application/json" }
2585        })
2586              .then(
2587               function (response) {
2588                   return {
2589                       Meals: response.data.d,
2590                   };
2591               },
2592               function (httpError) {
2593                   // translate the error
2594                   var error;
2595                   // LostConnection();
2596               });
2597    }
2598    this.GetRandomProfile = function (param) {
2599        return $http({
2600            url: "service/WebServiceUser.asmx/GetProfiles",
2601            dataType: 'json',
2602            method: 'POST',
2603            data: "{'PageIndex':'" + param + "'}",
2604            headers: { "Content-Type": "application/json" }
2605        })
2606              .then(
2607               function (response) {
2608                   return {
2609                       profiles: response.data.d,
2610                   };
2611               },
2612               function (httpError) {
2613                   // translate the error
2614                   var error;
2615                   // LostConnection();
2616               });
2617    }
2618
2619
2620
2621    this.WSGetMStatusPnia = function (param) {
2622        return $http({
2623            url: "service/PniaService.asmx/GetStatusPnia",
2624            dataType: 'json',
2625            method: 'POST',
2626            data: "{'pniaID':'" + param + "'}",
2627            headers: { "Content-Type": "application/json" }
2628        })
2629              .then(
2630               function (response) {
2631                   return {
2632                       StatusID: response.data.d,
2633                   };
2634               },
2635               function (httpError) {
2636                   // translate the error
2637                   var error;
2638                   // LostConnection();
2639               });
2640    }
2641
2642    this.GetRandomProfileHost = function (param) {
2643        return $http({
2644            url: "service/ServiceUser.asmx/GetProfilesHost",
2645            dataType: 'json',
2646            method: 'POST',
2647            data: "{'PageIndex':'" + param + "'}",
2648            headers: { "Content-Type": "application/json" }
2649        })
2650              .then(
2651               function (response) {
2652                   return {
2653                       profiles: response.data.d,
2654                   };
2655               },
2656               function (httpError) {
2657                   // translate the error
2658                   var error;
2659                   // LostConnection();
2660               });
2661    }
2662
2663
2664    this.GetRandomProfileGuest = function (param) {
2665        return $http({
2666            url: "service/ServiceUser.asmx/GetProfilesGuest",
2667            dataType: 'json',
2668            method: 'POST',
2669            data: "{'PageIndex':'" + param + "'}",
2670            headers: { "Content-Type": "application/json" }
2671        })
2672              .then(
2673               function (response) {
2674                   return {
2675                       profiles: response.data.d,
2676                   };
2677               },
2678               function (httpError) {
2679                   // translate the error
2680                   var error;
2681                   // LostConnection();
2682               });
2683    }
2684
2685
2686    this.SendDataSearch = function (param) {
2687        return $http.post("service/ServiceUser.asmx/SendData", param)
2688              .then(
2689               function (response) {
2690                   return {
2691                       profiles: response.data.d,
2692                   };
2693               },
2694               function (httpError) {
2695                   // translate the error
2696                   var error;
2697                   // LostConnection();
2698               });
2699    }
2700
2701    this.insertNewUser = function (param, transactionSubject) {
2702        //  var  = 10;
2703        var data = { user: param, transactionSubject: transactionSubject }
2704        return $http({
2705            url: "service/WebServiceUser.asmx/InsertNewUser",
2706            dataType: 'json',
2707            method: 'POST',
2708            data: data,
2709            headers: { "Content-Type": "application/json" }
2710        })
2711
2712              .then(
2713               function (response) {
2714                   return {
2715                       InsertUser: response.data.d,
2716                   };
2717               },
2718               function (httpError) {
2719                   // translate the error
2720                   var error;
2721                   // LostConnection();
2722               });
2723    }
2724
2725    //this.insertNewUser = function (param,location) {
2726    //    return $http.post("service/WebServiceUser.asmx/InsertNewUser", param)
2727    //          .then(
2728    //           function (response) {
2729    //               return {
2730    //                   InsertUser: response.data.d,
2731    //               };
2732    //           },
2733    //           function (httpError) {
2734    //               // translate the error
2735    //               var error;
2736    //               // LostConnection();
2737    //           });
2738    //}
2739
2740    this.UpdateUser = function (param) {
2741        // return $http.post("service/WebServiceUser.asmx/UpdateUser", param)
2742        return $http.post("service/WebServiceUser.asmx/EditUser", param)
2743            .then(
2744             function (response) {
2745                 return {
2746                     UpdateUser: response.data.d,
2747                 };
2748             },
2749             function (httpError) {
2750                 // translate the error
2751                 var error;
2752                 // LostConnection();
2753             });
2754    }
2755
2756    this.GetMyProfile = function () {
2757        var deferred = $q.defer();
2758        return $http({
2759            url: "service/WebServiceUser.asmx/GetMyProfile",
2760            dataType: 'json',
2761            method: 'POST',
2762            data: "{}",
2763            headers: { "Content-Type": "application/json" }
2764        })
2765
2766              .then(
2767               function (response) {
2768
2769                   deferred.resolve(response.data.d)
2770                   return response.data.d;
2771               },
2772               function (httpError) {
2773                   // translate the error
2774                   var error;
2775                   // LostConnection();
2776               });
2777
2778        return deferred.promise;
2779    }
2780    this.GetAvailableMealsOfX = function (param) {
2781        return $http({
2782            url: "service/WebServiceMeal.asmx/GetAvailableMealsOfX",
2783            dataType: 'json',
2784            method: 'POST',
2785            //'{"jewellerId":"' + filter + '","locale":"' + locale + '"}'
2786            data: '{"MealsOfUserID":"' + param + '"}',
2787            headers: { "Content-Type": "application/json" }
2788        })
2789
2790              .then(
2791               function (response) {
2792                   return {
2793                       AvailableMealsOfX: response.data.d,
2794                   };
2795               },
2796               function (httpError) {
2797                   // translate the error
2798                   var error;
2799                   // LostConnection();
2800               });
2801    }
2802
2803
2804    this.RestoreMeal = function (param) {
2805        return $http({
2806            url: "service/WebServiceMeal.asmx/RestoreMeal",
2807            dataType: 'json',
2808            method: 'POST',
2809            //'{"jewellerId":"' + filter + '","locale":"' + locale + '"}'
2810            data: '{"MealID":"' + param + '"}',
2811            headers: { "Content-Type": "application/json" }
2812        })
2813
2814              .then(
2815               function (response) {
2816                   return {
2817                       RestoreMeal: response.data.d,
2818                   };
2819               },
2820               function (httpError) {
2821                   // translate the error
2822                   var error;
2823                   // LostConnection();
2824               });
2825    }
2826
2827    this.BuyerWantChangeStatus = function (param) {
2828        return $http.post("service/WebServiceOrder.asmx/BuyerWantChangeStatus", param)
2829               .then(
2830                function (response) {
2831                    return {
2832                        BuyerWantChangeStatus: response.data.d,
2833                    };
2834                },
2835                function (httpError) {
2836                    // translate the error
2837                    var error;
2838                    // LostConnection();
2839                });
2840
2841    }
2842
2843    this.OrderByPaypal = function (param) {
2844        return $http.post("service/WebServiceOrder.asmx/BuyByPayal", param)
2845               .then(
2846                function (response) {
2847                    return {
2848                        BuyByPayal: response.data.d,
2849                    };
2850                },
2851                function (httpError) {
2852                    // translate the error
2853                    var error;
2854                    // LostConnection();
2855                });
2856
2857    }
2858
2859    this.SendMsgToX = function (param) {
2860        return $http.post("service/WebServiceMsg.asmx/SendMsgToX", param)
2861               .then(
2862                function (response) {
2863                    return {
2864                        SendMsgToX: response.data.d,
2865                    };
2866                },
2867                function (httpError) {
2868                    // translate the error
2869                    var error;
2870                    // LostConnection();
2871                });
2872
2873    }
2874
2875
2876    this.GetMealOfX = function (param) {
2877        //  var  = 10;
2878        return $http({
2879            url: "service/WebServiceMeal.asmx/GetMealOfX",
2880            dataType: 'json',
2881            method: 'POST',
2882            data: "{'MealID':'" + param + "'}",
2883            headers: { "Content-Type": "application/json" }
2884        })
2885
2886              .then(
2887               function (response) {
2888                   return {
2889                       Meal: response.data.d,
2890                   };
2891               },
2892               function (httpError) {
2893                   // translate the error
2894                   var error;
2895                   // LostConnection();
2896               });
2897    }
2898    this.GetProfileOfX = function (param) {
2899        //  var  = 10;
2900        return $http({
2901            url: "service/WebServiceUser.asmx/GeProfile",
2902            dataType: 'json',
2903            method: 'POST',
2904            data: "{'UserID':'" + param + "'}",
2905            headers: { "Content-Type": "application/json" }
2906        })
2907
2908              .then(
2909               function (response) {
2910                   return {
2911                       Profile: response.data.d,
2912                   };
2913               },
2914               function (httpError) {
2915                   // translate the error
2916                   var error;
2917                   // LostConnection();
2918               });
2919    }
2920
2921
2922    this.UpdateGuestUser = function (param) {
2923        return $http.post("service/ServiceUser.asmx/UpdateGuestUser", param)
2924              .then(
2925               function (response) {
2926                   return {
2927                       insertHost: response.data.d,
2928                   };
2929               },
2930               function (httpError) {
2931                   // translate the error
2932                   var error;
2933                   // LostConnection();
2934               });
2935    }
2936
2937    this.UpdateHostUser = function (param) {
2938        return $http.post("service/ServiceUser.asmx/UpdateHostUser", param)
2939              .then(
2940               function (response) {
2941                   return {
2942                       UpdateHostUser: response.data.d,
2943                   };
2944               },
2945               function (httpError) {
2946                   // translate the error
2947                   var error;
2948                   // LostConnection();
2949               });
2950    }
2951    this.InsertHostHaveAlreadyGuestUser = function (param) {
2952        return $http.post("service/ServiceUser.asmx/InsertHostHaveAlreadyGuestUser", param)
2953              .then(
2954               function (response) {
2955                   return {
2956                       insertHost: response.data.d,
2957                   };
2958               },
2959               function (httpError) {
2960                   // translate the error
2961                   var error;
2962                   // LostConnection();
2963               });
2964    }
2965    this.insertNewGuest = function (param) {
2966        return $http.post("service/ServiceUser.asmx/insertNewGuest", param)
2967              .then(
2968               function (response) {
2969                   return {
2970                       insertGuest: response.data.d,
2971                   };
2972               },
2973               function (httpError) {
2974                   // translate the error
2975                   var error;
2976                   // LostConnection();
2977               });
2978    }
2979    this.InsertGuestHaveAlreadyHostUser = function (param) {
2980        return $http.post("service/ServiceUser.asmx/InsertGuestHaveAlreadyHostUser", param)
2981              .then(
2982               function (response) {
2983                   return {
2984                       insertGuest: response.data.d,
2985                   };
2986               },
2987               function (httpError) {
2988                   // translate the error
2989                   var error;
2990                   // LostConnection();
2991               });
2992    }
2993
2994    this.UpdateGeneralSetting = function (param) {
2995        return $http.post("service/WebServiceUser.asmx/UpdateUser", param)
2996              .then(
2997               function (response) {
2998                   return {
2999                       update: response.data.d,
3000                   };
3001               },
3002               function (httpError) {
3003                   // translate the error
3004                   var error;
3005                   // LostConnection();
3006               });
3007    }
3008    this.UpdateHostSetting = function (param) {
3009        return $http.post("service/ServiceUser.asmx/UpdateHostSetting", param)
3010              .then(
3011               function (response) {
3012                   return {
3013                       update: response.data.d,
3014                   };
3015               },
3016               function (httpError) {
3017                   // translate the error
3018                   var error;
3019                   // LostConnection();
3020               });
3021    }
3022
3023
3024    this.UpdateGuestSetting = function (param) {
3025        return $http.post("service/ServiceUser.asmx/UpdateGuestSetting", param)
3026              .then(
3027               function (response) {
3028                   return {
3029                       update: response.data.d,
3030                   };
3031               },
3032               function (httpError) {
3033                   // translate the error
3034                   var error;
3035                   // LostConnection();
3036               });
3037    }
3038    this.WSIGuest_SentPnia = function (param) {
3039        return $http.post("service/PniaService.asmx/WSIGuest_SentPnia", param)
3040              .then(
3041               function (response) {
3042                   return {
3043                       Pnia: response.data.d,
3044                   };
3045               },
3046               function (httpError) {
3047                   // translate the error
3048                   var error;
3049                   // LostConnection();
3050               });
3051    }
3052
3053
3054    this.MySent = function (param) {
3055
3056
3057        return $http({
3058            url: 'service/WebServiceMsg.asmx/MySent',
3059            dataType: 'json',
3060            method: 'POST',
3061            data: "{'PageIndex':'" + param + "'}",
3062            headers: { "Content-Type": "application/json" }
3063        })
3064            .then(
3065               function (response) {
3066                   return {
3067                       MySent: response.data.d,
3068                   };
3069               },
3070               function (httpError) {
3071                   // translate the error
3072                   var error;
3073                   // LostConnection();
3074               });
3075    }
3076
3077    this.MyFullConverstaionWithX = function (param) {
3078
3079
3080        return $http({
3081            url: 'service/WebServiceMsg.asmx/MyFullConverstaionWithX',
3082            dataType: 'json',
3083            method: 'POST',
3084            data: "{'WithUser':'" + param + "'}",
3085            headers: { "Content-Type": "application/json" }
3086        })
3087            .then(
3088               function (response) {
3089                   return {
3090                       MyFullConverstaionWithX: response.data.d,
3091                   };
3092               },
3093               function (httpError) {
3094                   // translate the error
3095                   var error;
3096                   // LostConnection();
3097               });
3098    }
3099    this.MyRecieve = function (param) {
3100
3101
3102        return $http({
3103            url: 'service/WebServiceMsg.asmx/MyRecieve',
3104            dataType: 'json',
3105            method: 'POST',
3106            data: "{'PageIndex':'" + param + "'}",
3107            headers: { "Content-Type": "application/json" }
3108        })
3109            .then(
3110               function (response) {
3111                   return {
3112                       MyRecieve: response.data.d,
3113                   };
3114               },
3115               function (httpError) {
3116                   // translate the error
3117                   var error;
3118                   // LostConnection();
3119               });
3120    }
3121
3122
3123
3124    this.WSGetMyOrdersMeals = function (param) {
3125        return $http({
3126            url: 'service/WebServiceMeal.asmx/WSGetMyOrdersMeals',
3127            dataType: 'json',
3128            method: 'POST',
3129            data: "{'PageIndex':'" + param + "'}",
3130            headers: { "Content-Type": "application/json" }
3131        })
3132              .then(
3133               function (response) {
3134                   return {
3135                       MyOrdersMeals: response.data.d,
3136                   };
3137               },
3138               function (httpError) {
3139                   // translate the error
3140                   var error;
3141                   // LostConnection();
3142               });
3143    }
3144
3145
3146    this.WSGetOrdersToCook = function (param) {
3147        return $http({
3148            url: 'service/WebServiceMeal.asmx/WSGetOrdersToCook',
3149            dataType: 'json',
3150            method: 'POST',
3151            data: "{'PageIndex':'" + param + "'}",
3152            headers: { "Content-Type": "application/json" }
3153        })
3154              .then(
3155               function (response) {
3156                   return {
3157                       OrdersToCook: response.data.d,
3158                   };
3159               },
3160               function (httpError) {
3161                   // translate the error
3162                   var error;
3163                   // LostConnection();
3164               });
3165    }
3166
3167
3168
3169    this.WSGetMyPublishedMeals = function (param) {
3170        return $http({
3171            url: 'service/WebServiceMeal.asmx/WSGetMyPublishedMeals',
3172            dataType: 'json',
3173            method: 'POST',
3174            data: "{'PageIndex':'" + param + "'}",
3175            headers: { "Content-Type": "application/json" }
3176        })
3177              .then(
3178               function (response) {
3179                   return {
3180                       MyPublishedMeals: response.data.d,
3181                   };
3182               },
3183               function (httpError) {
3184                   // translate the error
3185                   var error;
3186                   // LostConnection();
3187               });
3188    }
3189
3190    this.WSGetMyPniotIGuest_History = function (param) {
3191        return $http({
3192            url: 'service/PniaService.asmx/WSGetMyPniotIGuest_History',
3193            dataType: 'json',
3194            method: 'POST',
3195            data: "{'PageIndex':'" + param + "'}",
3196            headers: { "Content-Type": "application/json" }
3197        })
3198              .then(
3199               function (response) {
3200                   return {
3201                       MyPniotIGuest_History: response.data.d,
3202                   };
3203               },
3204               function (httpError) {
3205                   // translate the error
3206                   var error;
3207                   // LostConnection();
3208               });
3209    }
3210    this.WSGetMyPniotIHost_GuestSentMeActive = function (param) {
3211        return $http({
3212            url: 'service/PniaService.asmx/WSGetMyPniotIHost_GuestSentMeActive',
3213            dataType: 'json',
3214            method: 'POST',
3215            data: "{'PageIndex':'" + param + "'}",
3216            headers: { "Content-Type": "application/json" }
3217        })
3218       .then(
3219        function (response) {
3220            return {
3221                MyPniotIHost_GuestSentMeActive: response.data.d,
3222            };
3223        },
3224        function (httpError) {
3225            // translate the error
3226            var error;
3227            // LostConnection();
3228        });
3229    }
3230
3231    this.WSGetPniotIHost_GuestSentHistory = function (param) {
3232        return $http({
3233            url: 'service/PniaService.asmx/WSGetPniotIHost_GuestSentHistory',
3234            dataType: 'json',
3235            method: 'POST',
3236            data: "{'PageIndex':'" + param + "'}",
3237            headers: { "Content-Type": "application/json" }
3238        }).then(
3239               function (response) {
3240                   return {
3241                       MyPniotIHost_GuestSentHistory: response.data.d,
3242                   };
3243               },
3244               function (httpError) {
3245                   // translate the error
3246                   var error;
3247                   // LostConnection();
3248               });
3249    }
3250    this.WSGetPniotIHost_GuestSentIapproved = function (param) {
3251        return $http({
3252            url: 'service/PniaService.asmx/WSGetPniotIHost_GuestSentIapproved',
3253            dataType: 'json',
3254            method: 'POST',
3255            data: "{'PageIndex':'" + param + "'}",
3256            headers: { "Content-Type": "application/json" }
3257        }).then(
3258               function (response) {
3259                   return {
3260                       MyPniotIHost_GuestSentIapproved: response.data.d,
3261                   };
3262               },
3263               function (httpError) {
3264                   // translate the error
3265                   var error;
3266                   // LostConnection();
3267               });
3268    }
3269    this.WSHistoryPniot = function (param) {
3270        return $http.post("service/PniaService.asmx/WSHistoryPniot", param)
3271              .then(
3272               function (response) {
3273                   return {
3274                       HistoryPniot: response.data.d,
3275                   };
3276               },
3277               function (httpError) {
3278                   // translate the error
3279                   var error;
3280                   // LostConnection();
3281               });
3282    }
3283    this.WSIGuestCancelPniaAfterApprove = function (param) {
3284
3285        return $http({
3286            url: 'service/PniaService.asmx/WSIGuestCancelPniaAfterApprove',
3287            dataType: 'json',
3288            method: 'POST',
3289            data: param
3290        })
3291   .then(
3292    function (response) {
3293        return {
3294            GuestCancelPniaAfterApprove: response.data.d,
3295        };
3296    },
3297    function (httpError) {
3298        // translate the error
3299        var error;
3300        // LostConnection();
3301    });
3302    }
3303    this.WSIGuestCancelPnia = function (param) {
3304        return $http({
3305            url: 'service/PniaService.asmx/WSIGuestCancelPnia',
3306            dataType: 'json',
3307            method: 'POST',
3308            data: param
3309        })
3310     .then(
3311      function (response) {
3312          return {
3313              GuestCancelPnia: response.data.d,
3314          };
3315      },
3316      function (httpError) {
3317          // translate the error
3318          var error;
3319          // LostConnection();
3320      });
3321    }
3322    this.WSIHost_SendApprove = function (param) {
3323        return $http({
3324            url: 'service/PniaService.asmx/WSIHost_SendApprove',
3325            dataType: 'json',
3326            method: 'POST',
3327            data: param
3328        })
3329                  .then(
3330               function (response) {
3331                   return {
3332                       IHost_SendApprove: response.data.d,
3333                   };
3334               },
3335               function (httpError) {
3336                   // translate the error
3337                   var error;
3338                   // LostConnection();
3339               });
3340    }
3341    this.WSIHostCancelPnia = function (param) {
3342        return $http({
3343            url: 'service/PniaService.asmx/WSIHostCancelPnia',
3344            dataType: 'json',
3345            method: 'POST',
3346            data: param
3347        })
3348
3349              .then(
3350               function (response) {
3351                   return {
3352                       WSIHostCancelPnia: response.data.d,
3353                   };
3354               },
3355               function (httpError) {
3356                   // translate the error
3357                   var error;
3358                   // LostConnection();
3359               });
3360    }
3361    this.WSIHostCancelPniaAfterApprove = function (param) {
3362
3363        return $http({
3364            url: 'service/PniaService.asmx/WSIHostCancelPniaAfterApprove',
3365            dataType: 'json',
3366            method: 'POST',
3367            data: param
3368        })
3369              .then(
3370               function (response) {
3371                   return {
3372                       WSIHostCancelPniaAfterApprove: response.data.d,
3373                   };
3374               },
3375               function (httpError) {
3376                   // translate the error
3377                   var error;
3378                   // LostConnection();
3379               });
3380    }
3381    this.WSHostWatched = function (param) {
3382        return $http.post("service/PniaService.asmx/WSHostWatched", param)
3383              .then(
3384               function (response) {
3385                   return {
3386                       HostWatched: response.data.d,
3387                   };
3388               },
3389               function (httpError) {
3390                   // translate the error
3391                   var error;
3392                   // LostConnection();
3393               });
3394    }
3395
3396    this.RedirectToLogin = function (param) {
3397        return $http({
3398            url: 'service/ServiceUser.asmx/WSLogOut',
3399            dataType: 'json',
3400            method: 'POST',
3401            data: "{}"
3402        })
3403
3404              .then(
3405               function (response) {
3406                   return {
3407                       result: response.data.d,
3408                   };
3409
3410               },
3411               function (httpError) {
3412                   // translate the error
3413                   var error;
3414                   // LostConnection();
3415               });
3416    }
3417
3418
3419    
3420
3421
3422    this.UpdateMeal = function (param) {
3423        return $http.post("service/WebServiceMeal.asmx/UpdateMeal", param)
3424              .then(
3425               function (response) {
3426                   return {
3427                       UpdateMeal: response.data.d,
3428                   };
3429               },
3430               function (httpError) {
3431                   // translate the error
3432                   var error;
3433                   // LostConnection();
3434               });
3435    }
3436    this.PublishMeal = function (param) {
3437        return $http.post("service/WebServiceMeal.asmx/PublishMeal", param)
3438              .then(
3439               function (response) {
3440                   return {
3441                       PublishMeal: response.data.d,
3442                   };
3443               },
3444               function (httpError) {
3445                   // translate the error
3446                   var error;
3447                   // LostConnection();
3448               });
3449    }
3450
3451});
3452
3453
3454
3455app.service('translationService', function ($http) {
3456
3457    this.getTranslation = function ($scope, language) {
3458        var path = 'Langs/' + language + '.json';
3459        var ssid = language;
3460
3461        if (sessionStorage) {
3462            if (sessionStorage.getItem(ssid)) {
3463                $scope.translation = JSON.parse(sessionStorage.getItem(ssid));
3464                lang = $scope.translation;
3465            } else {
3466
3467                $.ajax({
3468                    url: path,
3469                    dataType: "json",
3470                    async: false,
3471                    success: function (data) {
3472
3473                        sessionStorage.setItem(ssid, JSON.stringify(data));
3474
3475                        $scope.translation = data;
3476                        lang = data;
3477                    },
3478                    error: function (ajaxContext) {
3479                        alert(ajaxContext.responseText)
3480                    }
3481                })
3482            };
3483        } else {
3484
3485            $.ajax({
3486                url: path,
3487                dataType: "json",
3488                async: false,
3489                success: function (data) {
3490
3491                    sessionStorage.setItem(ssid, JSON.stringify(data));
3492
3493                    $scope.translation = data;
3494                    lang = data;
3495                },
3496                error: function (ajaxContext) {
3497                    alert(ajaxContext.responseText)
3498                }
3499            });
3500
3501        }
3502    };
3503
3504    this.GetStaticData = function ($scope, language) {
3505        var path = 'Langs/StaticData_' + language + '.json';
3506        var ssid = "StaticData";
3507        var DayExp = 10;
3508        //var StaticData = getCookie(ssid);
3509        //if (StaticData!=null) {
3510        //    if (StaticData!='') {
3511        //        $scope.StaticData = JSON.parse(StaticData);
3512
3513        //    } else {
3514
3515        $.ajax({
3516            url: path,
3517            dataType: "json",
3518            async: false,
3519            success: function (data) {
3520
3521                sessionStorage.setItem(ssid, JSON.stringify(data));
3522                setCookie(ssid, JSON.stringify(data), DayExp)
3523                $scope.StaticData = data;
3524                // lang = data;
3525            },
3526            error: function (ajaxContext) {
3527                alert(ajaxContext.responseText)
3528            }
3529        })
3530        //    };
3531        //} else {
3532
3533        //    $.ajax({
3534        //        url: path,
3535        //        dataType: "json",
3536        //        async: false,
3537        //        success: function (data) {
3538
3539        //            setCookie(ssid, JSON.stringify(data), DayExp)
3540
3541        //            $scope.StaticData = data;
3542        //           // lang = data;
3543        //        },
3544        //        error: function (ajaxContext) {
3545        //            alert(ajaxContext.responseText)
3546        //        }
3547        //    });
3548
3549        //}
3550    };
3551});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.