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 _0x7e05=['path','../../config/environment','./attachment.attributes','exports','define','Attachment','attachments','lodash','util','api','moment','request-promise'];(function(_0x4e8fb5,_0x5bb89a){var _0x198b65=function(_0x2c6be8){while(--_0x2c6be8){_0x4e8fb5['push'](_0x4e8fb5['shift']());}};_0x198b65(++_0x5bb89a);}(_0x7e05,0x19f));var _0x57e0=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x7e05[_0x2dafbe];return _0x58a45a;};'use strict';var _=require(_0x57e0('0x0'));var util=require(_0x57e0('0x1'));var logger=require('../../config/logger')(_0x57e0('0x2'));var moment=require(_0x57e0('0x3'));var BPromise=require('bluebird');var rp=require(_0x57e0('0x4'));var fs=require('fs');var path=require(_0x57e0('0x5'));var rimraf=require('rimraf');var config=require(_0x57e0('0x6'));var attributes=require(_0x57e0('0x7'));module[_0x57e0('0x8')]=function(_0x5af8d8,_0x1c28d4){return _0x5af8d8[_0x57e0('0x9')](_0x57e0('0xa'),attributes,{'tableName':_0x57e0('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};