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 _0xed03=['lodash','util','api','request-promise','rimraf','./attachment.attributes','exports','define','Attachment','attachments'];(function(_0x3f7374,_0x49473b){var _0x2183df=function(_0xbeeca0){while(--_0xbeeca0){_0x3f7374['push'](_0x3f7374['shift']());}};_0x2183df(++_0x49473b);}(_0xed03,0xdc));var _0x3ed0=function(_0x56482c,_0x16118d){_0x56482c=_0x56482c-0x0;var _0x5aae7a=_0xed03[_0x56482c];return _0x5aae7a;};'use strict';var _=require(_0x3ed0('0x0'));var util=require(_0x3ed0('0x1'));var logger=require('../../config/logger')(_0x3ed0('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x3ed0('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3ed0('0x4'));var config=require('../../config/environment');var attributes=require(_0x3ed0('0x5'));module[_0x3ed0('0x6')]=function(_0x9ef405,_0x39a2a0){return _0x9ef405[_0x3ed0('0x7')](_0x3ed0('0x8'),attributes,{'tableName':_0x3ed0('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};