Built motion from commit (unavailable).|2.5.6
[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 _0x1281=['save','remove','update','emit','removeListener','register','smsQueue:'];(function(_0x4099ee,_0x38495a){var _0x1b7bfc=function(_0x5f5388){while(--_0x5f5388){_0x4099ee['push'](_0x4099ee['shift']());}};_0x1b7bfc(++_0x38495a);}(_0x1281,0xb6));var _0x1128=function(_0x48875f,_0x53597a){_0x48875f=_0x48875f-0x0;var _0xfe2308=_0x1281[_0x48875f];return _0xfe2308;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0x1128('0x0'),_0x1128('0x1'),_0x1128('0x2')];function createListener(_0x4f88b8,_0x25fd8a){return function(_0x34b5ae){_0x25fd8a[_0x1128('0x3')](_0x4f88b8,_0x34b5ae);};}function removeListener(_0x2e194c,_0x2b92b8){return function(){SmsQueueEvents[_0x1128('0x4')](_0x2e194c,_0x2b92b8);};}exports[_0x1128('0x5')]=function(_0x1725d9){for(var _0x5d3ddb=0x0,_0x5b2688=events['length'];_0x5d3ddb<_0x5b2688;_0x5d3ddb++){var _0x3f3b58=events[_0x5d3ddb];var _0x249d35=createListener(_0x1128('0x6')+_0x3f3b58,_0x1725d9);SmsQueueEvents['on'](_0x3f3b58,_0x249d35);}};