Built motion from commit (unavailable).|2.5.15
[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 _0x28cc=['./smsQueue.events','remove','update','emit','smsQueue:'];(function(_0x803b84,_0x52acdf){var _0x571f27=function(_0x3ba74f){while(--_0x3ba74f){_0x803b84['push'](_0x803b84['shift']());}};_0x571f27(++_0x52acdf);}(_0x28cc,0xfa));var _0xc28c=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x28cc[_0x321bb2];return _0x9c12ed;};'use strict';var SmsQueueEvents=require(_0xc28c('0x0'));var events=['save',_0xc28c('0x1'),_0xc28c('0x2')];function createListener(_0x2dbdf5,_0x6b3b66){return function(_0x12cd1d){_0x6b3b66[_0xc28c('0x3')](_0x2dbdf5,_0x12cd1d);};}function removeListener(_0x1d9ab5,_0x3aba82){return function(){SmsQueueEvents['removeListener'](_0x1d9ab5,_0x3aba82);};}exports['register']=function(_0xc8a50a){for(var _0x3390fc=0x0,_0x44f955=events['length'];_0x3390fc<_0x44f955;_0x3390fc++){var _0x2d49be=events[_0x3390fc];var _0x12ed55=createListener(_0xc28c('0x4')+_0x2d49be,_0xc8a50a);SmsQueueEvents['on'](_0x2d49be,_0x12ed55);}};