0d1752aec48f9bdce7a32287b99b964d6ed57b8d
[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 _0x294a=['remove','update','emit','register','length','openchannelAccount:','./openchannelAccount.events','save'];(function(_0x4de3a1,_0x542f1c){var _0x349cf2=function(_0x24bfc9){while(--_0x24bfc9){_0x4de3a1['push'](_0x4de3a1['shift']());}};_0x349cf2(++_0x542f1c);}(_0x294a,0x76));var _0xa294=function(_0x53e19d,_0x604957){_0x53e19d=_0x53e19d-0x0;var _0x5ba332=_0x294a[_0x53e19d];return _0x5ba332;};'use strict';var OpenchannelAccountEvents=require(_0xa294('0x0'));var events=[_0xa294('0x1'),_0xa294('0x2'),_0xa294('0x3')];function createListener(_0x1edf1c,_0x560e03){return function(_0x4e4e2b){_0x560e03[_0xa294('0x4')](_0x1edf1c,_0x4e4e2b);};}function removeListener(_0x52fbe1,_0x3a9746){return function(){OpenchannelAccountEvents['removeListener'](_0x52fbe1,_0x3a9746);};}exports[_0xa294('0x5')]=function(_0x25b6b4){for(var _0x2acf93=0x0,_0x119508=events[_0xa294('0x6')];_0x2acf93<_0x119508;_0x2acf93++){var _0x419a77=events[_0x2acf93];var _0x1c095e=createListener(_0xa294('0x7')+_0x419a77,_0x25b6b4);OpenchannelAccountEvents['on'](_0x419a77,_0x1c095e);}};