Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / smsQueue / smsQueue.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 _0x0557=['emit','removeListener','register','length','./smsQueue.events','remove','update'];(function(_0x35a503,_0x4864e8){var _0x2151c2=function(_0x8ffa9c){while(--_0x8ffa9c){_0x35a503['push'](_0x35a503['shift']());}};_0x2151c2(++_0x4864e8);}(_0x0557,0x13f));var _0x7055=function(_0x179506,_0xb87ecc){_0x179506=_0x179506-0x0;var _0x4201f1=_0x0557[_0x179506];return _0x4201f1;};'use strict';var SmsQueueEvents=require(_0x7055('0x0'));var events=['save',_0x7055('0x1'),_0x7055('0x2')];function createListener(_0x2b4994,_0x4a7aa0){return function(_0x34e30b){_0x4a7aa0[_0x7055('0x3')](_0x2b4994,_0x34e30b);};}function removeListener(_0x24e657,_0x151aac){return function(){SmsQueueEvents[_0x7055('0x4')](_0x24e657,_0x151aac);};}exports[_0x7055('0x5')]=function(_0x29e521){for(var _0x4595c7=0x0,_0x5ce1b3=events[_0x7055('0x6')];_0x4595c7<_0x5ce1b3;_0x4595c7++){var _0xeb8abb=events[_0x4595c7];var _0x262d0a=createListener('smsQueue:'+_0xeb8abb,_0x29e521);SmsQueueEvents['on'](_0xeb8abb,_0x262d0a);}};