ee2afd2dad73eebaf68e74916da7fe639af102c7
[motion2.git] / server / api / openchannelInteraction / openchannelInteraction.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 _0xb263=['./openchannelInteraction.events','save','remove','update','emit','length','openchannelInteraction:'];(function(_0x4e204d,_0x7d3f57){var _0x206e69=function(_0x10056c){while(--_0x10056c){_0x4e204d['push'](_0x4e204d['shift']());}};_0x206e69(++_0x7d3f57);}(_0xb263,0xf5));var _0x3b26=function(_0x52d20b,_0x109160){_0x52d20b=_0x52d20b-0x0;var _0x254c3d=_0xb263[_0x52d20b];return _0x254c3d;};'use strict';var OpenchannelInteractionEvents=require(_0x3b26('0x0'));var events=[_0x3b26('0x1'),_0x3b26('0x2'),_0x3b26('0x3')];function createListener(_0x337b92,_0x335cca){return function(_0x2a0590){_0x335cca[_0x3b26('0x4')](_0x337b92,_0x2a0590);};}function removeListener(_0x3faf13,_0x40832b){return function(){OpenchannelInteractionEvents['removeListener'](_0x3faf13,_0x40832b);};}exports['register']=function(_0x2a282a){for(var _0x57bd35=0x0,_0x1d045e=events[_0x3b26('0x5')];_0x57bd35<_0x1d045e;_0x57bd35++){var _0x5e63e7=events[_0x57bd35];var _0x440ad7=createListener(_0x3b26('0x6')+_0x5e63e7,_0x2a282a);OpenchannelInteractionEvents['on'](_0x5e63e7,_0x440ad7);}};