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 _0x87bc=['request-promise','rimraf','define','lodash','util','api'];(function(_0x3e8c34,_0x549d3c){var _0x14969e=function(_0x2f19d3){while(--_0x2f19d3){_0x3e8c34['push'](_0x3e8c34['shift']());}};_0x14969e(++_0x549d3c);}(_0x87bc,0x189));var _0xc87b=function(_0x2d4ed7,_0x148a45){_0x2d4ed7=_0x2d4ed7-0x0;var _0x144615=_0x87bc[_0x2d4ed7];return _0x144615;};'use strict';var _=require(_0xc87b('0x0'));var util=require(_0xc87b('0x1'));var logger=require('../../config/logger')(_0xc87b('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xc87b('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc87b('0x4'));var config=require('../../config/environment');var attributes=require('./attachment.attributes');module['exports']=function(_0x1a2172,_0x1dfa75){return _0x1a2172[_0xc87b('0x5')]('Attachment',attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};