Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0x7774=['length','whatsappQueue:','./whatsappQueue.events','save','remove','update','emit'];(function(_0x2722bc,_0x221dd9){var _0x5ac515=function(_0x387030){while(--_0x387030){_0x2722bc['push'](_0x2722bc['shift']());}};_0x5ac515(++_0x221dd9);}(_0x7774,0x12f));var _0x4777=function(_0x3cb6dc,_0x120dd3){_0x3cb6dc=_0x3cb6dc-0x0;var _0x47ec89=_0x7774[_0x3cb6dc];return _0x47ec89;};'use strict';var WhatsappQueueEvents=require(_0x4777('0x0'));var events=[_0x4777('0x1'),_0x4777('0x2'),_0x4777('0x3')];function createListener(_0x1d473e,_0x563052){return function(_0x25a5b2){_0x563052[_0x4777('0x4')](_0x1d473e,_0x25a5b2);};}function removeListener(_0x4ab04c,_0x56bff9){return function(){WhatsappQueueEvents['removeListener'](_0x4ab04c,_0x56bff9);};}exports['register']=function(_0x316e66){for(var _0x1ff21e=0x0,_0x16f179=events[_0x4777('0x5')];_0x1ff21e<_0x16f179;_0x1ff21e++){var _0x317f24=events[_0x1ff21e];var _0xe4fdb9=createListener(_0x4777('0x6')+_0x317f24,_0x316e66);WhatsappQueueEvents['on'](_0x317f24,_0xe4fdb9);}};