Built motion from commit (unavailable).|2.4.18
[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 _0xda64=['removeListener','register','length','./smsQueue.events','save','remove','update'];(function(_0xd2d54,_0x5329f7){var _0x78b113=function(_0x7d2b29){while(--_0x7d2b29){_0xd2d54['push'](_0xd2d54['shift']());}};_0x78b113(++_0x5329f7);}(_0xda64,0x1a0));var _0x4da6=function(_0x3ff04a,_0x484590){_0x3ff04a=_0x3ff04a-0x0;var _0x309744=_0xda64[_0x3ff04a];return _0x309744;};'use strict';var SmsQueueEvents=require(_0x4da6('0x0'));var events=[_0x4da6('0x1'),_0x4da6('0x2'),_0x4da6('0x3')];function createListener(_0x1c0a01,_0xf8c05d){return function(_0x3901bb){_0xf8c05d['emit'](_0x1c0a01,_0x3901bb);};}function removeListener(_0x2ef187,_0x505c4c){return function(){SmsQueueEvents[_0x4da6('0x4')](_0x2ef187,_0x505c4c);};}exports[_0x4da6('0x5')]=function(_0x338a4a){for(var _0x1f6779=0x0,_0x306fac=events[_0x4da6('0x6')];_0x1f6779<_0x306fac;_0x1f6779++){var _0x1ad570=events[_0x1f6779];var _0x5ccb59=createListener('smsQueue:'+_0x1ad570,_0x338a4a);SmsQueueEvents['on'](_0x1ad570,_0x5ccb59);}};