Built motion from commit b5996064.|2.6.21
[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 _0xcac5=['remove','emit','register','length','openchannelInteraction:','./openchannelInteraction.events','save'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xcac5,0x178));var _0x5cac=function(_0x43fc4f,_0x2574ee){_0x43fc4f=_0x43fc4f-0x0;var _0x1879e5=_0xcac5[_0x43fc4f];return _0x1879e5;};'use strict';var OpenchannelInteractionEvents=require(_0x5cac('0x0'));var events=[_0x5cac('0x1'),_0x5cac('0x2'),'update'];function createListener(_0x2595dd,_0x2d1e14){return function(_0x1e8af8){_0x2d1e14[_0x5cac('0x3')](_0x2595dd,_0x1e8af8);};}function removeListener(_0x790e70,_0x3fd2a7){return function(){OpenchannelInteractionEvents['removeListener'](_0x790e70,_0x3fd2a7);};}exports[_0x5cac('0x4')]=function(_0x80f024){for(var _0x4afacb=0x0,_0x450650=events[_0x5cac('0x5')];_0x4afacb<_0x450650;_0x4afacb++){var _0x2e5fef=events[_0x4afacb];var _0x2abef3=createListener(_0x5cac('0x6')+_0x2e5fef,_0x80f024);OpenchannelInteractionEvents['on'](_0x2e5fef,_0x2abef3);}};