Built motion from commit ffdca78c.|2.6.24
[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 _0xf734=['./openchannelInteraction.events','save','remove','update','emit','removeListener','length','openchannelInteraction:'];(function(_0x263b0e,_0xc6479f){var _0x113fee=function(_0x803881){while(--_0x803881){_0x263b0e['push'](_0x263b0e['shift']());}};_0x113fee(++_0xc6479f);}(_0xf734,0xd0));var _0x4f73=function(_0x6babb4,_0x37e806){_0x6babb4=_0x6babb4-0x0;var _0x416e7c=_0xf734[_0x6babb4];return _0x416e7c;};'use strict';var OpenchannelInteractionEvents=require(_0x4f73('0x0'));var events=[_0x4f73('0x1'),_0x4f73('0x2'),_0x4f73('0x3')];function createListener(_0x263f5d,_0x42ea27){return function(_0x591727){_0x42ea27[_0x4f73('0x4')](_0x263f5d,_0x591727);};}function removeListener(_0x3420f9,_0x56be7b){return function(){OpenchannelInteractionEvents[_0x4f73('0x5')](_0x3420f9,_0x56be7b);};}exports['register']=function(_0x12ccd2){for(var _0x2b9c61=0x0,_0x5d8798=events[_0x4f73('0x6')];_0x2b9c61<_0x5d8798;_0x2b9c61++){var _0x2d6762=events[_0x2b9c61];var _0x20c415=createListener(_0x4f73('0x7')+_0x2d6762,_0x12ccd2);OpenchannelInteractionEvents['on'](_0x2d6762,_0x20c415);}};