c7f0acc981e60b5ec2fd6ae3972bcbca691d1fda
[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 _0xd412=['save','remove','update','emit','removeListener','register','length','whatsappAccount:','./whatsappAccount.events'];(function(_0x8fee0f,_0x118ab0){var _0xa5e569=function(_0x3d5a70){while(--_0x3d5a70){_0x8fee0f['push'](_0x8fee0f['shift']());}};_0xa5e569(++_0x118ab0);}(_0xd412,0xe0));var _0x2d41=function(_0x4702ff,_0x22a958){_0x4702ff=_0x4702ff-0x0;var _0x3a6ff3=_0xd412[_0x4702ff];return _0x3a6ff3;};'use strict';var WhatsappAccountEvents=require(_0x2d41('0x0'));var events=[_0x2d41('0x1'),_0x2d41('0x2'),_0x2d41('0x3')];function createListener(_0x3388e5,_0x590c4d){return function(_0x3aa51c){_0x590c4d[_0x2d41('0x4')](_0x3388e5,_0x3aa51c);};}function removeListener(_0x77df7e,_0x3ee763){return function(){WhatsappAccountEvents[_0x2d41('0x5')](_0x77df7e,_0x3ee763);};}exports[_0x2d41('0x6')]=function(_0x353a38){for(var _0x4af75c=0x0,_0x4eb59c=events[_0x2d41('0x7')];_0x4af75c<_0x4eb59c;_0x4af75c++){var _0x5770b0=events[_0x4af75c];var _0x443ef0=createListener(_0x2d41('0x8')+_0x5770b0,_0x353a38);WhatsappAccountEvents['on'](_0x5770b0,_0x443ef0);}};