Built motion from commit (unavailable).|2.5.3
[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 _0x2fc1=['removeListener','register','length','./openchannelAccount.events','save','update','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2fc1,0x176));var _0x12fc=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x2fc1[_0x17d9e3];return _0x14192d;};'use strict';var OpenchannelAccountEvents=require(_0x12fc('0x0'));var events=[_0x12fc('0x1'),'remove',_0x12fc('0x2')];function createListener(_0x108830,_0x1c0cfe){return function(_0x158b5b){_0x1c0cfe[_0x12fc('0x3')](_0x108830,_0x158b5b);};}function removeListener(_0x8c8f6,_0x3a4b4a){return function(){OpenchannelAccountEvents[_0x12fc('0x4')](_0x8c8f6,_0x3a4b4a);};}exports[_0x12fc('0x5')]=function(_0x4502ef){for(var _0x2c1f83=0x0,_0x95130e=events[_0x12fc('0x6')];_0x2c1f83<_0x95130e;_0x2c1f83++){var _0x36d0e8=events[_0x2c1f83];var _0x18d62c=createListener('openchannelAccount:'+_0x36d0e8,_0x4502ef);OpenchannelAccountEvents['on'](_0x36d0e8,_0x18d62c);}};