Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / faxQueue / faxQueue.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 _0xbb7c=['length','faxQueue:','./faxQueue.events','save','remove','update','removeListener','register'];(function(_0x322eb6,_0x2f8534){var _0x351bf9=function(_0x4e1de7){while(--_0x4e1de7){_0x322eb6['push'](_0x322eb6['shift']());}};_0x351bf9(++_0x2f8534);}(_0xbb7c,0x17a));var _0xcbb7=function(_0x400bc1,_0x389147){_0x400bc1=_0x400bc1-0x0;var _0x35bafb=_0xbb7c[_0x400bc1];return _0x35bafb;};'use strict';var FaxQueueEvents=require(_0xcbb7('0x0'));var events=[_0xcbb7('0x1'),_0xcbb7('0x2'),_0xcbb7('0x3')];function createListener(_0x24eb21,_0x3dbf5c){return function(_0x3ef54f){_0x3dbf5c['emit'](_0x24eb21,_0x3ef54f);};}function removeListener(_0x17a717,_0x44e3e3){return function(){FaxQueueEvents[_0xcbb7('0x4')](_0x17a717,_0x44e3e3);};}exports[_0xcbb7('0x5')]=function(_0x397075){for(var _0x3824f5=0x0,_0x3f359e=events[_0xcbb7('0x6')];_0x3824f5<_0x3f359e;_0x3824f5++){var _0x56f5ea=events[_0x3824f5];var _0x316c06=createListener(_0xcbb7('0x7')+_0x56f5ea,_0x397075);FaxQueueEvents['on'](_0x56f5ea,_0x316c06);}};