Built motion from commit 167bccf5.|2.6.7
[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 _0xc577=['./openchannelAccount.events','update','emit','register','length'];(function(_0x46b96c,_0x313c9a){var _0x199bd2=function(_0x25c435){while(--_0x25c435){_0x46b96c['push'](_0x46b96c['shift']());}};_0x199bd2(++_0x313c9a);}(_0xc577,0x172));var _0x7c57=function(_0x2b3cad,_0x573629){_0x2b3cad=_0x2b3cad-0x0;var _0x2175c4=_0xc577[_0x2b3cad];return _0x2175c4;};'use strict';var OpenchannelAccountEvents=require(_0x7c57('0x0'));var events=['save','remove',_0x7c57('0x1')];function createListener(_0x35af09,_0xe9a500){return function(_0x2a2415){_0xe9a500[_0x7c57('0x2')](_0x35af09,_0x2a2415);};}function removeListener(_0x304922,_0x2ea08b){return function(){OpenchannelAccountEvents['removeListener'](_0x304922,_0x2ea08b);};}exports[_0x7c57('0x3')]=function(_0x1339b3){for(var _0xf50a9f=0x0,_0x2bc454=events[_0x7c57('0x4')];_0xf50a9f<_0x2bc454;_0xf50a9f++){var _0x4bb81b=events[_0xf50a9f];var _0x4e5cb2=createListener('openchannelAccount:'+_0x4bb81b,_0x1339b3);OpenchannelAccountEvents['on'](_0x4bb81b,_0x4e5cb2);}};