Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / api / faxInteraction / faxInteraction.model.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 _0x5e13=['exports','define','FaxInteraction','changed','closed','closedAt','format','YYYY-MM-DD\x20HH:mm:ss','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./faxInteraction.attributes'];(function(_0xbed52b,_0x36d658){var _0x391159=function(_0x18cf05){while(--_0x18cf05){_0xbed52b['push'](_0xbed52b['shift']());}};_0x391159(++_0x36d658);}(_0x5e13,0x128));var _0x35e1=function(_0x17f716,_0x4a06c7){_0x17f716=_0x17f716-0x0;var _0x31f0de=_0x5e13[_0x17f716];return _0x31f0de;};'use strict';var _=require(_0x35e1('0x0'));var util=require(_0x35e1('0x1'));var logger=require(_0x35e1('0x2'))(_0x35e1('0x3'));var moment=require(_0x35e1('0x4'));var BPromise=require(_0x35e1('0x5'));var rp=require(_0x35e1('0x6'));var fs=require('fs');var path=require(_0x35e1('0x7'));var rimraf=require('rimraf');var config=require(_0x35e1('0x8'));var attributes=require(_0x35e1('0x9'));module[_0x35e1('0xa')]=function(_0x39bad1,_0xe89524){return _0x39bad1[_0x35e1('0xb')](_0x35e1('0xc'),attributes,{'tableName':'fax_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x50bcf6,_0x13bf60,_0x4d8e7a){if(_0x50bcf6[_0x35e1('0xd')](_0x35e1('0xe'))){_0x50bcf6[_0x35e1('0xf')]=moment()[_0x35e1('0x10')](_0x35e1('0x11'));}_0x4d8e7a(null,_0x50bcf6);}}});};