Built motion from commit d1eab355.|2.6.28
[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 _0x4324=['emit','removeListener','register','smsQueue:','save','update'];(function(_0x3e6f69,_0x3fc22b){var _0xc836c=function(_0x22c966){while(--_0x22c966){_0x3e6f69['push'](_0x3e6f69['shift']());}};_0xc836c(++_0x3fc22b);}(_0x4324,0x64));var _0x4432=function(_0x3ce3c,_0x319337){_0x3ce3c=_0x3ce3c-0x0;var _0x55a2c9=_0x4324[_0x3ce3c];return _0x55a2c9;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0x4432('0x0'),'remove',_0x4432('0x1')];function createListener(_0x5da279,_0x551604){return function(_0x523f50){_0x551604[_0x4432('0x2')](_0x5da279,_0x523f50);};}function removeListener(_0x16c8c3,_0x1cb9e6){return function(){SmsQueueEvents[_0x4432('0x3')](_0x16c8c3,_0x1cb9e6);};}exports[_0x4432('0x4')]=function(_0x2c9f50){for(var _0x5eb56f=0x0,_0x546319=events['length'];_0x5eb56f<_0x546319;_0x5eb56f++){var _0x2e5785=events[_0x5eb56f];var _0xcacb5a=createListener(_0x4432('0x5')+_0x2e5785,_0x2c9f50);SmsQueueEvents['on'](_0x2e5785,_0xcacb5a);}};