Built motion from commit c738b9ac.|2.6.25
[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 _0xb42b=['remove','update','emit','removeListener','length','openchannelInteraction:','./openchannelInteraction.events','save'];(function(_0x2b5eae,_0x55010d){var _0x5f3ac9=function(_0x397bfc){while(--_0x397bfc){_0x2b5eae['push'](_0x2b5eae['shift']());}};_0x5f3ac9(++_0x55010d);}(_0xb42b,0x1ce));var _0xbb42=function(_0x43f6ca,_0x2c4fff){_0x43f6ca=_0x43f6ca-0x0;var _0x4c93f3=_0xb42b[_0x43f6ca];return _0x4c93f3;};'use strict';var OpenchannelInteractionEvents=require(_0xbb42('0x0'));var events=[_0xbb42('0x1'),_0xbb42('0x2'),_0xbb42('0x3')];function createListener(_0x96f332,_0x56c040){return function(_0x2dff7c){_0x56c040[_0xbb42('0x4')](_0x96f332,_0x2dff7c);};}function removeListener(_0x397a24,_0x37ad66){return function(){OpenchannelInteractionEvents[_0xbb42('0x5')](_0x397a24,_0x37ad66);};}exports['register']=function(_0x130182){for(var _0x3b9363=0x0,_0x44f76f=events[_0xbb42('0x6')];_0x3b9363<_0x44f76f;_0x3b9363++){var _0x3d5056=events[_0x3b9363];var _0x2dd6e2=createListener(_0xbb42('0x7')+_0x3d5056,_0x130182);OpenchannelInteractionEvents['on'](_0x3d5056,_0x2dd6e2);}};