6d5a9a093fdf3c3483b08ed28ee877cb2b774eb9
[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 _0x6d4a=['remove','update','emit','removeListener','register','length','openchannelAccount:','./openchannelAccount.events'];(function(_0x36c220,_0x37e7e7){var _0x2b2978=function(_0x179489){while(--_0x179489){_0x36c220['push'](_0x36c220['shift']());}};_0x2b2978(++_0x37e7e7);}(_0x6d4a,0x117));var _0xa6d4=function(_0x539427,_0x5d8bae){_0x539427=_0x539427-0x0;var _0x8bfbb1=_0x6d4a[_0x539427];return _0x8bfbb1;};'use strict';var OpenchannelAccountEvents=require(_0xa6d4('0x0'));var events=['save',_0xa6d4('0x1'),_0xa6d4('0x2')];function createListener(_0x293a79,_0x2bb4d9){return function(_0x76298b){_0x2bb4d9[_0xa6d4('0x3')](_0x293a79,_0x76298b);};}function removeListener(_0x1d993f,_0x422d77){return function(){OpenchannelAccountEvents[_0xa6d4('0x4')](_0x1d993f,_0x422d77);};}exports[_0xa6d4('0x5')]=function(_0x25a720){for(var _0xe6dda6=0x0,_0x354148=events[_0xa6d4('0x6')];_0xe6dda6<_0x354148;_0xe6dda6++){var _0x49a9e8=events[_0xe6dda6];var _0x71ccfa=createListener(_0xa6d4('0x7')+_0x49a9e8,_0x25a720);OpenchannelAccountEvents['on'](_0x49a9e8,_0x71ccfa);}};