Built motion from commit (unavailable).|2.5.14
[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 _0x8c69=['openchannelAccount:','./openchannelAccount.events','update','removeListener','register','length'];(function(_0x40d411,_0x4642f1){var _0x51fd22=function(_0x1031c5){while(--_0x1031c5){_0x40d411['push'](_0x40d411['shift']());}};_0x51fd22(++_0x4642f1);}(_0x8c69,0x163));var _0x98c6=function(_0x471360,_0x34bd0b){_0x471360=_0x471360-0x0;var _0x4feb29=_0x8c69[_0x471360];return _0x4feb29;};'use strict';var OpenchannelAccountEvents=require(_0x98c6('0x0'));var events=['save','remove',_0x98c6('0x1')];function createListener(_0x28d429,_0x70b973){return function(_0x317c23){_0x70b973['emit'](_0x28d429,_0x317c23);};}function removeListener(_0x245481,_0x3cabb1){return function(){OpenchannelAccountEvents[_0x98c6('0x2')](_0x245481,_0x3cabb1);};}exports[_0x98c6('0x3')]=function(_0x452f87){for(var _0x5554a1=0x0,_0x27ef9a=events[_0x98c6('0x4')];_0x5554a1<_0x27ef9a;_0x5554a1++){var _0x319592=events[_0x5554a1];var _0xacb59b=createListener(_0x98c6('0x5')+_0x319592,_0x452f87);OpenchannelAccountEvents['on'](_0x319592,_0xacb59b);}};