Built motion from commit (unavailable).|2.5.4
[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 _0x802f=['removeListener','length','openchannelAccount:','./openchannelAccount.events','emit'];(function(_0x16b9ed,_0x56517a){var _0x66b1f8=function(_0x1c883){while(--_0x1c883){_0x16b9ed['push'](_0x16b9ed['shift']());}};_0x66b1f8(++_0x56517a);}(_0x802f,0x1b1));var _0xf802=function(_0x3de187,_0x1ddeee){_0x3de187=_0x3de187-0x0;var _0x507def=_0x802f[_0x3de187];return _0x507def;};'use strict';var OpenchannelAccountEvents=require(_0xf802('0x0'));var events=['save','remove','update'];function createListener(_0x3df158,_0x1ef328){return function(_0x182d23){_0x1ef328[_0xf802('0x1')](_0x3df158,_0x182d23);};}function removeListener(_0x399649,_0xef7167){return function(){OpenchannelAccountEvents[_0xf802('0x2')](_0x399649,_0xef7167);};}exports['register']=function(_0x3e2e89){for(var _0x249bdc=0x0,_0xf1312b=events[_0xf802('0x3')];_0x249bdc<_0xf1312b;_0x249bdc++){var _0x273714=events[_0x249bdc];var _0x1644ca=createListener(_0xf802('0x4')+_0x273714,_0x3e2e89);OpenchannelAccountEvents['on'](_0x273714,_0x1644ca);}};