Built motion from commit 3c2ce842.|2.6.31
[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 _0x1e5c=['emit','removeListener','register','faxAccount:','save','update'];(function(_0xd2730e,_0x32b64f){var _0x8fc68a=function(_0x3ec827){while(--_0x3ec827){_0xd2730e['push'](_0xd2730e['shift']());}};_0x8fc68a(++_0x32b64f);}(_0x1e5c,0xe8));var _0xc1e5=function(_0x157f81,_0x5ef4a3){_0x157f81=_0x157f81-0x0;var _0x27de15=_0x1e5c[_0x157f81];return _0x27de15;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=[_0xc1e5('0x0'),'remove',_0xc1e5('0x1')];function createListener(_0x480418,_0x28dcb2){return function(_0x268786){_0x28dcb2[_0xc1e5('0x2')](_0x480418,_0x268786);};}function removeListener(_0x12e750,_0x21b94b){return function(){FaxAccountEvents[_0xc1e5('0x3')](_0x12e750,_0x21b94b);};}exports[_0xc1e5('0x4')]=function(_0x1edc7d){for(var _0x270ec0=0x0,_0x46df9b=events['length'];_0x270ec0<_0x46df9b;_0x270ec0++){var _0x3967d1=events[_0x270ec0];var _0x572425=createListener(_0xc1e5('0x5')+_0x3967d1,_0x1edc7d);FaxAccountEvents['on'](_0x3967d1,_0x572425);}};