Built motion from commit 896e83a8.|2.6.30
[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 _0x1a21=['update','emit','removeListener','length','./smsQueue.events','save','remove'];(function(_0x10113d,_0x13a861){var _0xf52f5d=function(_0x5b6479){while(--_0x5b6479){_0x10113d['push'](_0x10113d['shift']());}};_0xf52f5d(++_0x13a861);}(_0x1a21,0x1d9));var _0x11a2=function(_0x2a238a,_0x1d5054){_0x2a238a=_0x2a238a-0x0;var _0xeef802=_0x1a21[_0x2a238a];return _0xeef802;};'use strict';var SmsQueueEvents=require(_0x11a2('0x0'));var events=[_0x11a2('0x1'),_0x11a2('0x2'),_0x11a2('0x3')];function createListener(_0x21960d,_0x25b6e9){return function(_0x2fcdd6){_0x25b6e9[_0x11a2('0x4')](_0x21960d,_0x2fcdd6);};}function removeListener(_0x784c38,_0x7f975a){return function(){SmsQueueEvents[_0x11a2('0x5')](_0x784c38,_0x7f975a);};}exports['register']=function(_0x25ba2c){for(var _0x374aa3=0x0,_0x238950=events[_0x11a2('0x6')];_0x374aa3<_0x238950;_0x374aa3++){var _0x227e9b=events[_0x374aa3];var _0x42438b=createListener('smsQueue:'+_0x227e9b,_0x25ba2c);SmsQueueEvents['on'](_0x227e9b,_0x42438b);}};