Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / api / whatsappAccount / whatsappAccount.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x8b8b=['length','whatsappAccount:','./whatsappAccount.events','save','remove','emit','removeListener','register'];(function(_0x21549c,_0x6d64d1){var _0x426cbd=function(_0x323f5b){while(--_0x323f5b){_0x21549c['push'](_0x21549c['shift']());}};_0x426cbd(++_0x6d64d1);}(_0x8b8b,0x9a));var _0xb8b8=function(_0x3ef15d,_0x1667bb){_0x3ef15d=_0x3ef15d-0x0;var _0x306810=_0x8b8b[_0x3ef15d];return _0x306810;};'use strict';var WhatsappAccountEvents=require(_0xb8b8('0x0'));var events=[_0xb8b8('0x1'),_0xb8b8('0x2'),'update'];function createListener(_0x58bb9b,_0x288eb6){return function(_0x1e2fed){_0x288eb6[_0xb8b8('0x3')](_0x58bb9b,_0x1e2fed);};}function removeListener(_0x6747c4,_0x5264e2){return function(){WhatsappAccountEvents[_0xb8b8('0x4')](_0x6747c4,_0x5264e2);};}exports[_0xb8b8('0x5')]=function(_0x14633e){for(var _0x4c7a85=0x0,_0x291767=events[_0xb8b8('0x6')];_0x4c7a85<_0x291767;_0x4c7a85++){var _0x20e55a=events[_0x4c7a85];var _0x457857=createListener(_0xb8b8('0x7')+_0x20e55a,_0x14633e);WhatsappAccountEvents['on'](_0x20e55a,_0x457857);}};