Built motion from commit 87cd5f02.|2.5.48
[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 _0xa2df=['update','emit','removeListener','length','openchannelInteraction:','./openchannelInteraction.events','save'];(function(_0x618414,_0x1a7a60){var _0x21c19a=function(_0x507b17){while(--_0x507b17){_0x618414['push'](_0x618414['shift']());}};_0x21c19a(++_0x1a7a60);}(_0xa2df,0x98));var _0xfa2d=function(_0x336e06,_0x42d34a){_0x336e06=_0x336e06-0x0;var _0x9c63bf=_0xa2df[_0x336e06];return _0x9c63bf;};'use strict';var OpenchannelInteractionEvents=require(_0xfa2d('0x0'));var events=[_0xfa2d('0x1'),'remove',_0xfa2d('0x2')];function createListener(_0x3f4769,_0x3c34fb){return function(_0x30af0d){_0x3c34fb[_0xfa2d('0x3')](_0x3f4769,_0x30af0d);};}function removeListener(_0x2703b2,_0x418248){return function(){OpenchannelInteractionEvents[_0xfa2d('0x4')](_0x2703b2,_0x418248);};}exports['register']=function(_0x39a94d){for(var _0xb21d84=0x0,_0x41e1d1=events[_0xfa2d('0x5')];_0xb21d84<_0x41e1d1;_0xb21d84++){var _0x125048=events[_0xb21d84];var _0x566b4f=createListener(_0xfa2d('0x6')+_0x125048,_0x39a94d);OpenchannelInteractionEvents['on'](_0x125048,_0x566b4f);}};