Built motion from commit e02f907f.|2.6.14
[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 _0x3c70=['save','remove','update','emit','removeListener','register','openchannelInteraction:','./openchannelInteraction.events'];(function(_0xc9b152,_0x39ffaf){var _0x4782bd=function(_0x38225c){while(--_0x38225c){_0xc9b152['push'](_0xc9b152['shift']());}};_0x4782bd(++_0x39ffaf);}(_0x3c70,0x1b7));var _0x03c7=function(_0x433a86,_0x175b5c){_0x433a86=_0x433a86-0x0;var _0x23000c=_0x3c70[_0x433a86];return _0x23000c;};'use strict';var OpenchannelInteractionEvents=require(_0x03c7('0x0'));var events=[_0x03c7('0x1'),_0x03c7('0x2'),_0x03c7('0x3')];function createListener(_0x214c16,_0x45697a){return function(_0x5f57cc){_0x45697a[_0x03c7('0x4')](_0x214c16,_0x5f57cc);};}function removeListener(_0x2c41df,_0x5eab95){return function(){OpenchannelInteractionEvents[_0x03c7('0x5')](_0x2c41df,_0x5eab95);};}exports[_0x03c7('0x6')]=function(_0x24b658){for(var _0x48433b=0x0,_0xb863f4=events['length'];_0x48433b<_0xb863f4;_0x48433b++){var _0x5517f7=events[_0x48433b];var _0x562bef=createListener(_0x03c7('0x7')+_0x5517f7,_0x24b658);OpenchannelInteractionEvents['on'](_0x5517f7,_0x562bef);}};