Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / faxAccount / faxAccount.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 _0xe792=['removeListener','register','./faxAccount.events','save','remove','update','emit'];(function(_0x3e1936,_0xbfa630){var _0x171f4a=function(_0x26665f){while(--_0x26665f){_0x3e1936['push'](_0x3e1936['shift']());}};_0x171f4a(++_0xbfa630);}(_0xe792,0x1bb));var _0x2e79=function(_0x630c80,_0x303623){_0x630c80=_0x630c80-0x0;var _0x31b2e1=_0xe792[_0x630c80];return _0x31b2e1;};'use strict';var FaxAccountEvents=require(_0x2e79('0x0'));var events=[_0x2e79('0x1'),_0x2e79('0x2'),_0x2e79('0x3')];function createListener(_0x3cba97,_0x2bdacd){return function(_0x5837a2){_0x2bdacd[_0x2e79('0x4')](_0x3cba97,_0x5837a2);};}function removeListener(_0x2ed25d,_0x63b49a){return function(){FaxAccountEvents[_0x2e79('0x5')](_0x2ed25d,_0x63b49a);};}exports[_0x2e79('0x6')]=function(_0x57dde1){for(var _0x34f985=0x0,_0x349711=events['length'];_0x34f985<_0x349711;_0x34f985++){var _0x52266d=events[_0x34f985];var _0x4776c5=createListener('faxAccount:'+_0x52266d,_0x57dde1);FaxAccountEvents['on'](_0x52266d,_0x4776c5);}};