ab07f4a59fd29a684359503fa93443399b3ac480
[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 _0x5deb=['remove','update','removeListener','length','openchannelInteraction:','save'];(function(_0x37ebb1,_0x44632d){var _0x3a1e6e=function(_0x1d9ef9){while(--_0x1d9ef9){_0x37ebb1['push'](_0x37ebb1['shift']());}};_0x3a1e6e(++_0x44632d);}(_0x5deb,0x113));var _0xb5de=function(_0x2512fd,_0x5f5bfd){_0x2512fd=_0x2512fd-0x0;var _0x576639=_0x5deb[_0x2512fd];return _0x576639;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0xb5de('0x0'),_0xb5de('0x1'),_0xb5de('0x2')];function createListener(_0x3fbb8f,_0x24df6a){return function(_0x25fbb4){_0x24df6a['emit'](_0x3fbb8f,_0x25fbb4);};}function removeListener(_0x4b392c,_0x5cea37){return function(){OpenchannelInteractionEvents[_0xb5de('0x3')](_0x4b392c,_0x5cea37);};}exports['register']=function(_0x3d5577){for(var _0x38ccd1=0x0,_0x117b64=events[_0xb5de('0x4')];_0x38ccd1<_0x117b64;_0x38ccd1++){var _0x4d602a=events[_0x38ccd1];var _0x1fc39a=createListener(_0xb5de('0x5')+_0x4d602a,_0x3d5577);OpenchannelInteractionEvents['on'](_0x4d602a,_0x1fc39a);}};