Built motion from commit 538092ac.|2.6.10
[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 _0x7659=['openchannelInteraction:','./openchannelInteraction.events','save','update','emit','removeListener','length'];(function(_0x12b2f0,_0x13ece2){var _0x44d298=function(_0xcc188d){while(--_0xcc188d){_0x12b2f0['push'](_0x12b2f0['shift']());}};_0x44d298(++_0x13ece2);}(_0x7659,0x166));var _0x9765=function(_0x5b6002,_0x5e7ef3){_0x5b6002=_0x5b6002-0x0;var _0x8fb2d3=_0x7659[_0x5b6002];return _0x8fb2d3;};'use strict';var OpenchannelInteractionEvents=require(_0x9765('0x0'));var events=[_0x9765('0x1'),'remove',_0x9765('0x2')];function createListener(_0x168bd2,_0x29dfd){return function(_0x64d44b){_0x29dfd[_0x9765('0x3')](_0x168bd2,_0x64d44b);};}function removeListener(_0x56061e,_0x549d52){return function(){OpenchannelInteractionEvents[_0x9765('0x4')](_0x56061e,_0x549d52);};}exports['register']=function(_0x534d9e){for(var _0x16d6e7=0x0,_0x167815=events[_0x9765('0x5')];_0x16d6e7<_0x167815;_0x16d6e7++){var _0x4e472e=events[_0x16d6e7];var _0x3bbaa0=createListener(_0x9765('0x6')+_0x4e472e,_0x534d9e);OpenchannelInteractionEvents['on'](_0x4e472e,_0x3bbaa0);}};