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 _0x29c5=['define','attachments','lodash','util','bluebird','rimraf','../../config/environment','./attachment.attributes'];(function(_0x396910,_0x397bda){var _0x217d81=function(_0x1e6ab9){while(--_0x1e6ab9){_0x396910['push'](_0x396910['shift']());}};_0x217d81(++_0x397bda);}(_0x29c5,0xe2));var _0x529c=function(_0x1f0713,_0x11450d){_0x1f0713=_0x1f0713-0x0;var _0x26477d=_0x29c5[_0x1f0713];return _0x26477d;};'use strict';var _=require(_0x529c('0x0'));var util=require(_0x529c('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x529c('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x529c('0x3'));var config=require(_0x529c('0x4'));var attributes=require(_0x529c('0x5'));module['exports']=function(_0xeff314,_0x199a38){return _0xeff314[_0x529c('0x6')]('Attachment',attributes,{'tableName':_0x529c('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};