Built motion from commit d5e4af8c.|2.6.23
[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 _0x133a=['remove','emit','removeListener','length','openchannelInteraction:','./openchannelInteraction.events','save'];(function(_0x36e08b,_0x5106a2){var _0x1f27cd=function(_0x1d4b5e){while(--_0x1d4b5e){_0x36e08b['push'](_0x36e08b['shift']());}};_0x1f27cd(++_0x5106a2);}(_0x133a,0x124));var _0xa133=function(_0x50f112,_0xd38e53){_0x50f112=_0x50f112-0x0;var _0x4ecf28=_0x133a[_0x50f112];return _0x4ecf28;};'use strict';var OpenchannelInteractionEvents=require(_0xa133('0x0'));var events=[_0xa133('0x1'),_0xa133('0x2'),'update'];function createListener(_0xf4bd3,_0x296775){return function(_0x1abcb1){_0x296775[_0xa133('0x3')](_0xf4bd3,_0x1abcb1);};}function removeListener(_0x52728b,_0x4f299d){return function(){OpenchannelInteractionEvents[_0xa133('0x4')](_0x52728b,_0x4f299d);};}exports['register']=function(_0x3d06c1){for(var _0x31691a=0x0,_0x269d42=events[_0xa133('0x5')];_0x31691a<_0x269d42;_0x31691a++){var _0x3df97c=events[_0x31691a];var _0x15344c=createListener(_0xa133('0x6')+_0x3df97c,_0x3d06c1);OpenchannelInteractionEvents['on'](_0x3df97c,_0x15344c);}};