Built motion from commit 47436d59.|2.6.7
[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 _0xbc5e=['length','openchannelInteraction:','./openchannelInteraction.events','save','update','emit','removeListener'];(function(_0x3cbb2a,_0x10569f){var _0x83bab2=function(_0x549342){while(--_0x549342){_0x3cbb2a['push'](_0x3cbb2a['shift']());}};_0x83bab2(++_0x10569f);}(_0xbc5e,0x128));var _0xebc5=function(_0x58e4d1,_0x2bfc2e){_0x58e4d1=_0x58e4d1-0x0;var _0x13a4d2=_0xbc5e[_0x58e4d1];return _0x13a4d2;};'use strict';var OpenchannelInteractionEvents=require(_0xebc5('0x0'));var events=[_0xebc5('0x1'),'remove',_0xebc5('0x2')];function createListener(_0xb1508a,_0xc6ef2c){return function(_0x2b5351){_0xc6ef2c[_0xebc5('0x3')](_0xb1508a,_0x2b5351);};}function removeListener(_0x5da4b5,_0x352bc4){return function(){OpenchannelInteractionEvents[_0xebc5('0x4')](_0x5da4b5,_0x352bc4);};}exports['register']=function(_0x5a4002){for(var _0x58f26a=0x0,_0x256549=events[_0xebc5('0x5')];_0x58f26a<_0x256549;_0x58f26a++){var _0x235697=events[_0x58f26a];var _0x17b37b=createListener(_0xebc5('0x6')+_0x235697,_0x5a4002);OpenchannelInteractionEvents['on'](_0x235697,_0x17b37b);}};