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 _0xd94d=['../../config/environment','exports','define','Attachment','attachments','util','moment','bluebird','path','rimraf'];(function(_0x1cebc8,_0x38e7b7){var _0x552300=function(_0x4e1a35){while(--_0x4e1a35){_0x1cebc8['push'](_0x1cebc8['shift']());}};_0x552300(++_0x38e7b7);}(_0xd94d,0x11d));var _0xdd94=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xd94d[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0xdd94('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xdd94('0x1'));var BPromise=require(_0xdd94('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdd94('0x3'));var rimraf=require(_0xdd94('0x4'));var config=require(_0xdd94('0x5'));var attributes=require('./attachment.attributes');module[_0xdd94('0x6')]=function(_0x37d3ce,_0x46040d){return _0x37d3ce[_0xdd94('0x7')](_0xdd94('0x8'),attributes,{'tableName':_0xdd94('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};