Built motion from commit (unavailable).|2.5.31
[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 _0x6155=['save','remove','update','emit','length','./smsQueue.events'];(function(_0x243b2f,_0x30aa15){var _0xcb3c2d=function(_0x213bb2){while(--_0x213bb2){_0x243b2f['push'](_0x243b2f['shift']());}};_0xcb3c2d(++_0x30aa15);}(_0x6155,0x131));var _0x5615=function(_0x5a95fa,_0x4a2fc9){_0x5a95fa=_0x5a95fa-0x0;var _0x1a61b8=_0x6155[_0x5a95fa];return _0x1a61b8;};'use strict';var SmsQueueEvents=require(_0x5615('0x0'));var events=[_0x5615('0x1'),_0x5615('0x2'),_0x5615('0x3')];function createListener(_0x1fac60,_0x3a2134){return function(_0x8f22d){_0x3a2134[_0x5615('0x4')](_0x1fac60,_0x8f22d);};}function removeListener(_0x704a33,_0x33f48f){return function(){SmsQueueEvents['removeListener'](_0x704a33,_0x33f48f);};}exports['register']=function(_0x3c8470){for(var _0x214168=0x0,_0x220a95=events[_0x5615('0x5')];_0x214168<_0x220a95;_0x214168++){var _0x4858da=events[_0x214168];var _0x3d641a=createListener('smsQueue:'+_0x4858da,_0x3c8470);SmsQueueEvents['on'](_0x4858da,_0x3d641a);}};