Built motion from commit 746c7d2a.|2.5.35
[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 _0x6b1a=['emit','removeListener','length','openchannelInteraction:','./openchannelInteraction.events'];(function(_0x1cf4d7,_0x5c9cd8){var _0x4c9053=function(_0x23fde2){while(--_0x23fde2){_0x1cf4d7['push'](_0x1cf4d7['shift']());}};_0x4c9053(++_0x5c9cd8);}(_0x6b1a,0x162));var _0xa6b1=function(_0x2da4a9,_0x344782){_0x2da4a9=_0x2da4a9-0x0;var _0x1ec99e=_0x6b1a[_0x2da4a9];return _0x1ec99e;};'use strict';var OpenchannelInteractionEvents=require(_0xa6b1('0x0'));var events=['save','remove','update'];function createListener(_0x3ac8c8,_0x4502c3){return function(_0x38b570){_0x4502c3[_0xa6b1('0x1')](_0x3ac8c8,_0x38b570);};}function removeListener(_0x4919db,_0x504a38){return function(){OpenchannelInteractionEvents[_0xa6b1('0x2')](_0x4919db,_0x504a38);};}exports['register']=function(_0x518006){for(var _0x4e6605=0x0,_0x501a4d=events[_0xa6b1('0x3')];_0x4e6605<_0x501a4d;_0x4e6605++){var _0x205711=events[_0x4e6605];var _0x5579fb=createListener(_0xa6b1('0x4')+_0x205711,_0x518006);OpenchannelInteractionEvents['on'](_0x205711,_0x5579fb);}};