Built motion from commit 1fd437e9.|2.6.19
[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 _0xa114=['openchannelInteraction:','./openchannelInteraction.events','remove','emit','length'];(function(_0x1bb0b0,_0x2e56ba){var _0xb3573b=function(_0x55b4c8){while(--_0x55b4c8){_0x1bb0b0['push'](_0x1bb0b0['shift']());}};_0xb3573b(++_0x2e56ba);}(_0xa114,0x164));var _0x4a11=function(_0x3ba924,_0x3b99f0){_0x3ba924=_0x3ba924-0x0;var _0x4cc1df=_0xa114[_0x3ba924];return _0x4cc1df;};'use strict';var OpenchannelInteractionEvents=require(_0x4a11('0x0'));var events=['save',_0x4a11('0x1'),'update'];function createListener(_0x16f1de,_0xd0fd06){return function(_0x1a8bb3){_0xd0fd06[_0x4a11('0x2')](_0x16f1de,_0x1a8bb3);};}function removeListener(_0xc081e0,_0x225f25){return function(){OpenchannelInteractionEvents['removeListener'](_0xc081e0,_0x225f25);};}exports['register']=function(_0x50d174){for(var _0x3f396e=0x0,_0x4231d4=events[_0x4a11('0x3')];_0x3f396e<_0x4231d4;_0x3f396e++){var _0x54e8d6=events[_0x3f396e];var _0xf143ac=createListener(_0x4a11('0x4')+_0x54e8d6,_0x50d174);OpenchannelInteractionEvents['on'](_0x54e8d6,_0xf143ac);}};