Built motion from commit 85328c08.|2.5.50
[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 _0x796f=['whatsappAccount:','./whatsappAccount.events','save','remove','update','emit','removeListener','register','length'];(function(_0xd2e51d,_0x1936d2){var _0x919ffc=function(_0x14c3a0){while(--_0x14c3a0){_0xd2e51d['push'](_0xd2e51d['shift']());}};_0x919ffc(++_0x1936d2);}(_0x796f,0xeb));var _0xf796=function(_0x5ea3f6,_0x595373){_0x5ea3f6=_0x5ea3f6-0x0;var _0x3fc5a2=_0x796f[_0x5ea3f6];return _0x3fc5a2;};'use strict';var WhatsappAccountEvents=require(_0xf796('0x0'));var events=[_0xf796('0x1'),_0xf796('0x2'),_0xf796('0x3')];function createListener(_0x12766a,_0x5f1420){return function(_0x4c1fa8){_0x5f1420[_0xf796('0x4')](_0x12766a,_0x4c1fa8);};}function removeListener(_0x2e1f9e,_0x3f4845){return function(){WhatsappAccountEvents[_0xf796('0x5')](_0x2e1f9e,_0x3f4845);};}exports[_0xf796('0x6')]=function(_0x45638b){for(var _0x520f47=0x0,_0x51744f=events[_0xf796('0x7')];_0x520f47<_0x51744f;_0x520f47++){var _0x579906=events[_0x520f47];var _0x4fea0f=createListener(_0xf796('0x8')+_0x579906,_0x45638b);WhatsappAccountEvents['on'](_0x579906,_0x4fea0f);}};