Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / api / mailQueue / mailQueue.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 _0xba4e=['removeListener','length','mailQueue:','./mailQueue.events','emit'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0xba4e,0x99));var _0xeba4=function(_0x42e25e,_0x46cfd1){_0x42e25e=_0x42e25e-0x0;var _0x1ed3a6=_0xba4e[_0x42e25e];return _0x1ed3a6;};'use strict';var MailQueueEvents=require(_0xeba4('0x0'));var events=['save','remove','update'];function createListener(_0x45a447,_0x56a5ac){return function(_0x23c742){_0x56a5ac[_0xeba4('0x1')](_0x45a447,_0x23c742);};}function removeListener(_0x4f632d,_0x4105a6){return function(){MailQueueEvents[_0xeba4('0x2')](_0x4f632d,_0x4105a6);};}exports['register']=function(_0x42e2f1){for(var _0x77c6b2=0x0,_0x288d65=events[_0xeba4('0x3')];_0x77c6b2<_0x288d65;_0x77c6b2++){var _0x2d88cf=events[_0x77c6b2];var _0x399bb6=createListener(_0xeba4('0x4')+_0x2d88cf,_0x42e2f1);MailQueueEvents['on'](_0x2d88cf,_0x399bb6);}};