Built motion from commit ffdca78c.|2.6.24
[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 _0xcfce=['smsQueue:','save','update','emit','removeListener','register'];(function(_0xb0f7c3,_0x4eae95){var _0x28ea68=function(_0x4395a7){while(--_0x4395a7){_0xb0f7c3['push'](_0xb0f7c3['shift']());}};_0x28ea68(++_0x4eae95);}(_0xcfce,0x133));var _0xecfc=function(_0x321e72,_0x23dfcc){_0x321e72=_0x321e72-0x0;var _0xb956bd=_0xcfce[_0x321e72];return _0xb956bd;};'use strict';var SmsQueueEvents=require('./smsQueue.events');var events=[_0xecfc('0x0'),'remove',_0xecfc('0x1')];function createListener(_0x42cd03,_0x1aa8a3){return function(_0x47a76c){_0x1aa8a3[_0xecfc('0x2')](_0x42cd03,_0x47a76c);};}function removeListener(_0x5f1de9,_0x5a9cd4){return function(){SmsQueueEvents[_0xecfc('0x3')](_0x5f1de9,_0x5a9cd4);};}exports[_0xecfc('0x4')]=function(_0x5bf7dd){for(var _0x297543=0x0,_0x585e5a=events['length'];_0x297543<_0x585e5a;_0x297543++){var _0xc562c5=events[_0x297543];var _0x258f42=createListener(_0xecfc('0x5')+_0xc562c5,_0x5bf7dd);SmsQueueEvents['on'](_0xc562c5,_0x258f42);}};