Built motion from commit 9e1399f3.|2.5.37
[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 _0xfd56=['register','length','smsQueue:','./smsQueue.events','save','emit'];(function(_0x283902,_0x5c566c){var _0x17c2c6=function(_0x3172df){while(--_0x3172df){_0x283902['push'](_0x283902['shift']());}};_0x17c2c6(++_0x5c566c);}(_0xfd56,0xed));var _0x6fd5=function(_0x4635c3,_0x896415){_0x4635c3=_0x4635c3-0x0;var _0x3ab9d0=_0xfd56[_0x4635c3];return _0x3ab9d0;};'use strict';var SmsQueueEvents=require(_0x6fd5('0x0'));var events=[_0x6fd5('0x1'),'remove','update'];function createListener(_0x56efad,_0x311b37){return function(_0xb3de7){_0x311b37[_0x6fd5('0x2')](_0x56efad,_0xb3de7);};}function removeListener(_0x5f03a9,_0x19ddba){return function(){SmsQueueEvents['removeListener'](_0x5f03a9,_0x19ddba);};}exports[_0x6fd5('0x3')]=function(_0x758fc){for(var _0x525b55=0x0,_0x8aa886=events[_0x6fd5('0x4')];_0x525b55<_0x8aa886;_0x525b55++){var _0x5a4160=events[_0x525b55];var _0x3f91ba=createListener(_0x6fd5('0x5')+_0x5a4160,_0x758fc);SmsQueueEvents['on'](_0x5a4160,_0x3f91ba);}};