b0822f3d30848557bd9aa993b278f2b15e61b5a9
[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 _0x98ff=['length','smsQueue:','./smsQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x324661,_0x3fb798){var _0x135bed=function(_0x15aed6){while(--_0x15aed6){_0x324661['push'](_0x324661['shift']());}};_0x135bed(++_0x3fb798);}(_0x98ff,0x1df));var _0xf98f=function(_0x3054be,_0x1bdc8b){_0x3054be=_0x3054be-0x0;var _0x3df150=_0x98ff[_0x3054be];return _0x3df150;};'use strict';var SmsQueueEvents=require(_0xf98f('0x0'));var events=[_0xf98f('0x1'),_0xf98f('0x2'),_0xf98f('0x3')];function createListener(_0x231937,_0x51f25d){return function(_0x2769c2){_0x51f25d[_0xf98f('0x4')](_0x231937,_0x2769c2);};}function removeListener(_0x435b1c,_0x1dd4ac){return function(){SmsQueueEvents[_0xf98f('0x5')](_0x435b1c,_0x1dd4ac);};}exports[_0xf98f('0x6')]=function(_0x4ebc0f){for(var _0x2dd9e0=0x0,_0x5bdb56=events[_0xf98f('0x7')];_0x2dd9e0<_0x5bdb56;_0x2dd9e0++){var _0x1f55af=events[_0x2dd9e0];var _0x1ee32c=createListener(_0xf98f('0x8')+_0x1f55af,_0x4ebc0f);SmsQueueEvents['on'](_0x1f55af,_0x1ee32c);}};