Built motion from commit (unavailable).|2.4.21
[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 _0x18da=['smsQueue:','./smsQueue.events','remove','update','emit','removeListener','length'];(function(_0x33d930,_0x560b76){var _0x3e1ddd=function(_0x40ca71){while(--_0x40ca71){_0x33d930['push'](_0x33d930['shift']());}};_0x3e1ddd(++_0x560b76);}(_0x18da,0xe8));var _0xa18d=function(_0x53a82f,_0x3c21cd){_0x53a82f=_0x53a82f-0x0;var _0x24c906=_0x18da[_0x53a82f];return _0x24c906;};'use strict';var SmsQueueEvents=require(_0xa18d('0x0'));var events=['save',_0xa18d('0x1'),_0xa18d('0x2')];function createListener(_0x217215,_0x381a73){return function(_0x13837d){_0x381a73[_0xa18d('0x3')](_0x217215,_0x13837d);};}function removeListener(_0x3dbfe5,_0x37b850){return function(){SmsQueueEvents[_0xa18d('0x4')](_0x3dbfe5,_0x37b850);};}exports['register']=function(_0x4c9500){for(var _0x5deae5=0x0,_0xe234e7=events[_0xa18d('0x5')];_0x5deae5<_0xe234e7;_0x5deae5++){var _0x48263c=events[_0x5deae5];var _0x3fdba2=createListener(_0xa18d('0x6')+_0x48263c,_0x4c9500);SmsQueueEvents['on'](_0x48263c,_0x3fdba2);}};