Built motion from commit (unavailable).|2.5.26
[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 _0xb547=['save','remove','register','openchannelAccount:'];(function(_0x20343a,_0x40738f){var _0x43157c=function(_0x356625){while(--_0x356625){_0x20343a['push'](_0x20343a['shift']());}};_0x43157c(++_0x40738f);}(_0xb547,0x74));var _0x7b54=function(_0x47242d,_0x13f993){_0x47242d=_0x47242d-0x0;var _0x30273a=_0xb547[_0x47242d];return _0x30273a;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0x7b54('0x0'),_0x7b54('0x1'),'update'];function createListener(_0x475e42,_0x3b6816){return function(_0x40a3d4){_0x3b6816['emit'](_0x475e42,_0x40a3d4);};}function removeListener(_0x33addb,_0xef84fd){return function(){OpenchannelAccountEvents['removeListener'](_0x33addb,_0xef84fd);};}exports[_0x7b54('0x2')]=function(_0x41b960){for(var _0xbe0c7c=0x0,_0x56f4e0=events['length'];_0xbe0c7c<_0x56f4e0;_0xbe0c7c++){var _0x17c1ae=events[_0xbe0c7c];var _0x53c252=createListener(_0x7b54('0x3')+_0x17c1ae,_0x41b960);OpenchannelAccountEvents['on'](_0x17c1ae,_0x53c252);}};