Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / smsInteraction / smsInteraction.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 _0x8d69=['./smsInteraction.events','save','remove','emit','removeListener','register','length'];(function(_0x304ce0,_0x455f3b){var _0x3dce89=function(_0xc2b967){while(--_0xc2b967){_0x304ce0['push'](_0x304ce0['shift']());}};_0x3dce89(++_0x455f3b);}(_0x8d69,0x1f1));var _0x98d6=function(_0x120e93,_0x291ed0){_0x120e93=_0x120e93-0x0;var _0x56d1a0=_0x8d69[_0x120e93];return _0x56d1a0;};'use strict';var SmsInteractionEvents=require(_0x98d6('0x0'));var events=[_0x98d6('0x1'),_0x98d6('0x2'),'update'];function createListener(_0x25e85e,_0x5ab1f4){return function(_0x653c6){_0x5ab1f4[_0x98d6('0x3')](_0x25e85e,_0x653c6);};}function removeListener(_0x153146,_0x1fea53){return function(){SmsInteractionEvents[_0x98d6('0x4')](_0x153146,_0x1fea53);};}exports[_0x98d6('0x5')]=function(_0x1612c6){for(var _0x51414f=0x0,_0x66669f=events[_0x98d6('0x6')];_0x51414f<_0x66669f;_0x51414f++){var _0x44ab33=events[_0x51414f];var _0x21708c=createListener('smsInteraction:'+_0x44ab33,_0x1612c6);SmsInteractionEvents['on'](_0x44ab33,_0x21708c);}};