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 _0xf08c=['attachments','lodash','util','../../config/logger','moment','bluebird','request-promise','path','./attachment.attributes','exports','define','Attachment'];(function(_0x5b0723,_0x2bca54){var _0x1b8615=function(_0x679378){while(--_0x679378){_0x5b0723['push'](_0x5b0723['shift']());}};_0x1b8615(++_0x2bca54);}(_0xf08c,0xb5));var _0xcf08=function(_0x387dfe,_0x3d2a25){_0x387dfe=_0x387dfe-0x0;var _0x1aa84c=_0xf08c[_0x387dfe];return _0x1aa84c;};'use strict';var _=require(_0xcf08('0x0'));var util=require(_0xcf08('0x1'));var logger=require(_0xcf08('0x2'))('api');var moment=require(_0xcf08('0x3'));var BPromise=require(_0xcf08('0x4'));var rp=require(_0xcf08('0x5'));var fs=require('fs');var path=require(_0xcf08('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xcf08('0x7'));module[_0xcf08('0x8')]=function(_0x5f1020,_0x346b93){return _0x5f1020[_0xcf08('0x9')](_0xcf08('0xa'),attributes,{'tableName':_0xcf08('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};