1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x6428=['closedAt','YYYY-MM-DD\x20HH:mm:ss','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./faxInteraction.attributes','exports','FaxInteraction','changed','closed'];(function(_0x4ee523,_0x4db686){var _0x21632f=function(_0x30188c){while(--_0x30188c){_0x4ee523['push'](_0x4ee523['shift']());}};_0x21632f(++_0x4db686);}(_0x6428,0x101));var _0x8642=function(_0x292f93,_0x2c6e8e){_0x292f93=_0x292f93-0x0;var _0x5a94b1=_0x6428[_0x292f93];return _0x5a94b1;};'use strict';var _=require(_0x8642('0x0'));var util=require(_0x8642('0x1'));var logger=require(_0x8642('0x2'))(_0x8642('0x3'));var moment=require(_0x8642('0x4'));var BPromise=require(_0x8642('0x5'));var rp=require(_0x8642('0x6'));var fs=require('fs');var path=require(_0x8642('0x7'));var rimraf=require(_0x8642('0x8'));var config=require(_0x8642('0x9'));var attributes=require(_0x8642('0xa'));module[_0x8642('0xb')]=function(_0x5ee20b,_0x3e3e9e){return _0x5ee20b['define'](_0x8642('0xc'),attributes,{'tableName':'fax_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1c6f89,_0x477799,_0x5c5cd5){if(_0x1c6f89[_0x8642('0xd')](_0x8642('0xe'))){_0x1c6f89[_0x8642('0xf')]=moment()['format'](_0x8642('0x10'));}_0x5c5cd5(null,_0x1c6f89);}}});};