Built motion from commit bab6f49e.|2.6.17
[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 _0x80fb=['remove','emit','removeListener','register','length','openchannelAccount:','save'];(function(_0x215a95,_0x1fead6){var _0x103e17=function(_0x365421){while(--_0x365421){_0x215a95['push'](_0x215a95['shift']());}};_0x103e17(++_0x1fead6);}(_0x80fb,0x11e));var _0xb80f=function(_0xf71120,_0x25b7f9){_0xf71120=_0xf71120-0x0;var _0xbe2fd3=_0x80fb[_0xf71120];return _0xbe2fd3;};'use strict';var OpenchannelAccountEvents=require('./openchannelAccount.events');var events=[_0xb80f('0x0'),_0xb80f('0x1'),'update'];function createListener(_0x33f217,_0x374dc2){return function(_0x38def4){_0x374dc2[_0xb80f('0x2')](_0x33f217,_0x38def4);};}function removeListener(_0x22de9a,_0x4561c7){return function(){OpenchannelAccountEvents[_0xb80f('0x3')](_0x22de9a,_0x4561c7);};}exports[_0xb80f('0x4')]=function(_0x52d81c){for(var _0x1676a9=0x0,_0x251de5=events[_0xb80f('0x5')];_0x1676a9<_0x251de5;_0x1676a9++){var _0x2083ab=events[_0x1676a9];var _0x28027c=createListener(_0xb80f('0x6')+_0x2083ab,_0x52d81c);OpenchannelAccountEvents['on'](_0x2083ab,_0x28027c);}};