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 _0xe525=['../../config/logger','request-promise','path','../../config/environment','./attachment.attributes','exports','Attachment','attachments','lodash','util'];(function(_0x43ed13,_0x2b7693){var _0x4a3a37=function(_0x4e4cbb){while(--_0x4e4cbb){_0x43ed13['push'](_0x43ed13['shift']());}};_0x4a3a37(++_0x2b7693);}(_0xe525,0xc6));var _0x5e52=function(_0x4a81b9,_0x320e9c){_0x4a81b9=_0x4a81b9-0x0;var _0x40e1d3=_0xe525[_0x4a81b9];return _0x40e1d3;};'use strict';var _=require(_0x5e52('0x0'));var util=require(_0x5e52('0x1'));var logger=require(_0x5e52('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x5e52('0x3'));var fs=require('fs');var path=require(_0x5e52('0x4'));var rimraf=require('rimraf');var config=require(_0x5e52('0x5'));var attributes=require(_0x5e52('0x6'));module[_0x5e52('0x7')]=function(_0xcdb3a9,_0x3dc544){return _0xcdb3a9['define'](_0x5e52('0x8'),attributes,{'tableName':_0x5e52('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};