Built motion from commit 19a84241.|2.5.34
[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 _0x62c7=['./whatsappQueue.events','save','update','emit','removeListener','register','length','whatsappQueue:'];(function(_0x4ddfe1,_0x35939d){var _0x4aaf51=function(_0x1e99a0){while(--_0x1e99a0){_0x4ddfe1['push'](_0x4ddfe1['shift']());}};_0x4aaf51(++_0x35939d);}(_0x62c7,0xf0));var _0x762c=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x62c7[_0x321bb2];return _0x9c12ed;};'use strict';var WhatsappQueueEvents=require(_0x762c('0x0'));var events=[_0x762c('0x1'),'remove',_0x762c('0x2')];function createListener(_0x51cb83,_0x5b926f){return function(_0x12f4fe){_0x5b926f[_0x762c('0x3')](_0x51cb83,_0x12f4fe);};}function removeListener(_0xf85dd,_0x1257f7){return function(){WhatsappQueueEvents[_0x762c('0x4')](_0xf85dd,_0x1257f7);};}exports[_0x762c('0x5')]=function(_0x4275c1){for(var _0x558f9e=0x0,_0x1f9d35=events[_0x762c('0x6')];_0x558f9e<_0x1f9d35;_0x558f9e++){var _0x4a942b=events[_0x558f9e];var _0x5295a1=createListener(_0x762c('0x7')+_0x4a942b,_0x4275c1);WhatsappQueueEvents['on'](_0x4a942b,_0x5295a1);}};