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 _0x204c=['api','moment','bluebird','request-promise','path','rimraf','./attachment.attributes','exports','define','Attachment','attachments','util','../../config/logger'];(function(_0x37c062,_0x3d3c72){var _0x573375=function(_0x5c7a1a){while(--_0x5c7a1a){_0x37c062['push'](_0x37c062['shift']());}};_0x573375(++_0x3d3c72);}(_0x204c,0xb4));var _0xc204=function(_0x3fe2be,_0x24cfba){_0x3fe2be=_0x3fe2be-0x0;var _0x16b3ca=_0x204c[_0x3fe2be];return _0x16b3ca;};'use strict';var _=require('lodash');var util=require(_0xc204('0x0'));var logger=require(_0xc204('0x1'))(_0xc204('0x2'));var moment=require(_0xc204('0x3'));var BPromise=require(_0xc204('0x4'));var rp=require(_0xc204('0x5'));var fs=require('fs');var path=require(_0xc204('0x6'));var rimraf=require(_0xc204('0x7'));var config=require('../../config/environment');var attributes=require(_0xc204('0x8'));module[_0xc204('0x9')]=function(_0x5d2920,_0x12b9fc){return _0x5d2920[_0xc204('0xa')](_0xc204('0xb'),attributes,{'tableName':_0xc204('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};