Built motion from commit (unavailable).|2.5.13
[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 _0xcbfa=['update','emit','removeListener','register','length','./smsQueue.events','save','remove'];(function(_0x37082e,_0x514e6e){var _0x367279=function(_0x35c404){while(--_0x35c404){_0x37082e['push'](_0x37082e['shift']());}};_0x367279(++_0x514e6e);}(_0xcbfa,0x85));var _0xacbf=function(_0x455ed5,_0xab57cc){_0x455ed5=_0x455ed5-0x0;var _0x481ac4=_0xcbfa[_0x455ed5];return _0x481ac4;};'use strict';var SmsQueueEvents=require(_0xacbf('0x0'));var events=[_0xacbf('0x1'),_0xacbf('0x2'),_0xacbf('0x3')];function createListener(_0x4f595c,_0x169c56){return function(_0x18185e){_0x169c56[_0xacbf('0x4')](_0x4f595c,_0x18185e);};}function removeListener(_0x33a777,_0x43939e){return function(){SmsQueueEvents[_0xacbf('0x5')](_0x33a777,_0x43939e);};}exports[_0xacbf('0x6')]=function(_0x24e3ff){for(var _0x52c303=0x0,_0x4ed6ab=events[_0xacbf('0x7')];_0x52c303<_0x4ed6ab;_0x52c303++){var _0x1665db=events[_0x52c303];var _0x9668ad=createListener('smsQueue:'+_0x1665db,_0x24e3ff);SmsQueueEvents['on'](_0x1665db,_0x9668ad);}};