Built motion from commit b5996064.|2.6.21
[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 _0xf51d=['remove','update','emit','removeListener','register','length','save'];(function(_0x16bf2b,_0x12ebe8){var _0x4e096c=function(_0x58ebb1){while(--_0x58ebb1){_0x16bf2b['push'](_0x16bf2b['shift']());}};_0x4e096c(++_0x12ebe8);}(_0xf51d,0xca));var _0xdf51=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf51d[_0x3dd15e];return _0x231fd0;};'use strict';var SmsInteractionEvents=require('./smsInteraction.events');var events=[_0xdf51('0x0'),_0xdf51('0x1'),_0xdf51('0x2')];function createListener(_0x19425f,_0x3368b6){return function(_0x30f495){_0x3368b6[_0xdf51('0x3')](_0x19425f,_0x30f495);};}function removeListener(_0x4f1d77,_0x4205ed){return function(){SmsInteractionEvents[_0xdf51('0x4')](_0x4f1d77,_0x4205ed);};}exports[_0xdf51('0x5')]=function(_0x5b03b7){for(var _0x2cf1fd=0x0,_0x2caf83=events[_0xdf51('0x6')];_0x2cf1fd<_0x2caf83;_0x2cf1fd++){var _0x4d4bc5=events[_0x2cf1fd];var _0x23865c=createListener('smsInteraction:'+_0x4d4bc5,_0x5b03b7);SmsInteractionEvents['on'](_0x4d4bc5,_0x23865c);}};