Built motion from commit (unavailable).|2.5.22
[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 _0xb2ae=['removeListener','register','smsQueue:','./smsQueue.events','remove','update'];(function(_0x1c3702,_0x536907){var _0x326173=function(_0x192abe){while(--_0x192abe){_0x1c3702['push'](_0x1c3702['shift']());}};_0x326173(++_0x536907);}(_0xb2ae,0x87));var _0xeb2a=function(_0x23a5ee,_0x1dbbf6){_0x23a5ee=_0x23a5ee-0x0;var _0x1d86ba=_0xb2ae[_0x23a5ee];return _0x1d86ba;};'use strict';var SmsQueueEvents=require(_0xeb2a('0x0'));var events=['save',_0xeb2a('0x1'),_0xeb2a('0x2')];function createListener(_0x476e07,_0x397a03){return function(_0x14ccdf){_0x397a03['emit'](_0x476e07,_0x14ccdf);};}function removeListener(_0x249755,_0x50a709){return function(){SmsQueueEvents[_0xeb2a('0x3')](_0x249755,_0x50a709);};}exports[_0xeb2a('0x4')]=function(_0x433d77){for(var _0x1b56af=0x0,_0x219312=events['length'];_0x1b56af<_0x219312;_0x1b56af++){var _0x46daa9=events[_0x1b56af];var _0x3267d2=createListener(_0xeb2a('0x5')+_0x46daa9,_0x433d77);SmsQueueEvents['on'](_0x46daa9,_0x3267d2);}};