Built motion from commit da617fac.|2.6.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 _0x2e66=['smsQueue:','./smsQueue.events','save','remove','emit'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x2e66,0xf6));var _0x62e6=function(_0x4a62bb,_0x3bf277){_0x4a62bb=_0x4a62bb-0x0;var _0x2d1adc=_0x2e66[_0x4a62bb];return _0x2d1adc;};'use strict';var SmsQueueEvents=require(_0x62e6('0x0'));var events=[_0x62e6('0x1'),_0x62e6('0x2'),'update'];function createListener(_0x302f4b,_0xf023b7){return function(_0x4d8381){_0xf023b7[_0x62e6('0x3')](_0x302f4b,_0x4d8381);};}function removeListener(_0x57dc36,_0x35e52f){return function(){SmsQueueEvents['removeListener'](_0x57dc36,_0x35e52f);};}exports['register']=function(_0x1d93f1){for(var _0x5df8f3=0x0,_0x4a9f5c=events['length'];_0x5df8f3<_0x4a9f5c;_0x5df8f3++){var _0xd43572=events[_0x5df8f3];var _0x592328=createListener(_0x62e6('0x4')+_0xd43572,_0x1d93f1);SmsQueueEvents['on'](_0xd43572,_0x592328);}};