Built motion from commit (unavailable).|2.5.0
[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 _0xee02=['./openchannelAccount.events','save','remove','update','emit','openchannelAccount:'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0xee02,0xfc));var _0x2ee0=function(_0x319e2e,_0x2f727f){_0x319e2e=_0x319e2e-0x0;var _0x302524=_0xee02[_0x319e2e];return _0x302524;};'use strict';var OpenchannelAccountEvents=require(_0x2ee0('0x0'));var events=[_0x2ee0('0x1'),_0x2ee0('0x2'),_0x2ee0('0x3')];function createListener(_0x53f91a,_0x1c0b07){return function(_0x557b89){_0x1c0b07[_0x2ee0('0x4')](_0x53f91a,_0x557b89);};}function removeListener(_0x6a2607,_0x58828e){return function(){OpenchannelAccountEvents['removeListener'](_0x6a2607,_0x58828e);};}exports['register']=function(_0x4ed21e){for(var _0x475221=0x0,_0x5cf220=events['length'];_0x475221<_0x5cf220;_0x475221++){var _0x507a4a=events[_0x475221];var _0x12f48a=createListener(_0x2ee0('0x5')+_0x507a4a,_0x4ed21e);OpenchannelAccountEvents['on'](_0x507a4a,_0x12f48a);}};