Built motion from commit 9efc8423.|2.6.31
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0xdf0c=['register','length','openchannelAccount:','./openchannelAccount.events','remove','update','emit','removeListener'];(function(_0x2dea24,_0x2fc021){var _0x309d58=function(_0x2eb89f){while(--_0x2eb89f){_0x2dea24['push'](_0x2dea24['shift']());}};_0x309d58(++_0x2fc021);}(_0xdf0c,0x1ab));var _0xcdf0=function(_0x37e6a2,_0x58a3e4){_0x37e6a2=_0x37e6a2-0x0;var _0x4c2938=_0xdf0c[_0x37e6a2];return _0x4c2938;};'use strict';var OpenchannelAccountEvents=require(_0xcdf0('0x0'));var events=['save',_0xcdf0('0x1'),_0xcdf0('0x2')];function createListener(_0x5233f6,_0x436e7e){return function(_0x27f933){_0x436e7e[_0xcdf0('0x3')](_0x5233f6,_0x27f933);};}function removeListener(_0x2917be,_0x57a58c){return function(){OpenchannelAccountEvents[_0xcdf0('0x4')](_0x2917be,_0x57a58c);};}exports[_0xcdf0('0x5')]=function(_0x5f4c9c){for(var _0x3c97df=0x0,_0xe282be=events[_0xcdf0('0x6')];_0x3c97df<_0xe282be;_0x3c97df++){var _0x5b39b8=events[_0x3c97df];var _0x62e18=createListener(_0xcdf0('0x7')+_0x5b39b8,_0x5f4c9c);OpenchannelAccountEvents['on'](_0x5b39b8,_0x62e18);}};