Built motion from commit (unavailable).|2.3.97
[motion2.git] / server / api / faxInteraction / faxInteraction.events.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 _0xae60=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','FaxInteraction','save','update'];(function(_0x210baf,_0x47d35d){var _0x439dfb=function(_0x59394e){while(--_0x59394e){_0x210baf['push'](_0x210baf['shift']());}};_0x439dfb(++_0x47d35d);}(_0xae60,0x1c7));var _0x0ae6=function(_0x725b8e,_0xc22b48){_0x725b8e=_0x725b8e-0x0;var _0x43ac45=_0xae60[_0x725b8e];return _0x43ac45;};'use strict';var EventEmitter=require(_0x0ae6('0x0'));var FaxInteraction=require(_0x0ae6('0x1'))['db'][_0x0ae6('0x2')];var FaxInteractionEvents=new EventEmitter();FaxInteractionEvents['setMaxListeners'](0x0);var events={'afterCreate':_0x0ae6('0x3'),'afterUpdate':_0x0ae6('0x4'),'afterDestroy':_0x0ae6('0x5')};function emitEvent(_0x568a7f){return function(_0x4c014f,_0x470e83,_0x47c9e0){FaxInteractionEvents[_0x0ae6('0x6')](_0x568a7f+':'+_0x4c014f['id'],_0x4c014f);FaxInteractionEvents[_0x0ae6('0x6')](_0x568a7f,_0x4c014f);_0x47c9e0(null);};}for(var e in events){if(events[_0x0ae6('0x7')](e)){var event=events[e];FaxInteraction[_0x0ae6('0x8')](e,emitEvent(event));}}module[_0x0ae6('0x9')]=FaxInteractionEvents;