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 _0x082a=['closed','closedAt','format','YYYY-MM-DD\x20HH:mm:ss','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','fax_interactions','changed'];(function(_0x4553ce,_0x578dd6){var _0x45fd59=function(_0x464228){while(--_0x464228){_0x4553ce['push'](_0x4553ce['shift']());}};_0x45fd59(++_0x578dd6);}(_0x082a,0x154));var _0xa082=function(_0x4de329,_0x521a){_0x4de329=_0x4de329-0x0;var _0x4c5a2e=_0x082a[_0x4de329];return _0x4c5a2e;};'use strict';var _=require('lodash');var util=require(_0xa082('0x0'));var logger=require(_0xa082('0x1'))(_0xa082('0x2'));var moment=require('moment');var BPromise=require(_0xa082('0x3'));var rp=require(_0xa082('0x4'));var fs=require('fs');var path=require(_0xa082('0x5'));var rimraf=require(_0xa082('0x6'));var config=require(_0xa082('0x7'));var attributes=require('./faxInteraction.attributes');module[_0xa082('0x8')]=function(_0x59b4a8,_0x1ada27){return _0x59b4a8[_0xa082('0x9')]('FaxInteraction',attributes,{'tableName':_0xa082('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x193550,_0x382b03,_0x4b9ea9){if(_0x193550[_0xa082('0xb')](_0xa082('0xc'))){_0x193550[_0xa082('0xd')]=moment()[_0xa082('0xe')](_0xa082('0xf'));}_0x4b9ea9(null,_0x193550);}}});};