Built motion from commit 9d0783e6.|2.6.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 _0x06d1=['remove','update','emit','removeListener','register','length','./smsQueue.events','save'];(function(_0x354c1b,_0x56d79b){var _0x2c70f4=function(_0x47bdf4){while(--_0x47bdf4){_0x354c1b['push'](_0x354c1b['shift']());}};_0x2c70f4(++_0x56d79b);}(_0x06d1,0x1ae));var _0x106d=function(_0x51020b,_0x38c2c7){_0x51020b=_0x51020b-0x0;var _0x371e47=_0x06d1[_0x51020b];return _0x371e47;};'use strict';var SmsQueueEvents=require(_0x106d('0x0'));var events=[_0x106d('0x1'),_0x106d('0x2'),_0x106d('0x3')];function createListener(_0x453337,_0x396fc5){return function(_0x474c6d){_0x396fc5[_0x106d('0x4')](_0x453337,_0x474c6d);};}function removeListener(_0x5f45f7,_0x33d571){return function(){SmsQueueEvents[_0x106d('0x5')](_0x5f45f7,_0x33d571);};}exports[_0x106d('0x6')]=function(_0x259eca){for(var _0x1a522e=0x0,_0x434131=events[_0x106d('0x7')];_0x1a522e<_0x434131;_0x1a522e++){var _0x1a4aa8=events[_0x1a522e];var _0x1011c4=createListener('smsQueue:'+_0x1a4aa8,_0x259eca);SmsQueueEvents['on'](_0x1a4aa8,_0x1011c4);}};