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 _0x8ae9=['util','bluebird','request-promise','path','./attachment.attributes','exports','Attachment','attachments','lodash'];(function(_0x5ada1d,_0x56e386){var _0x23b414=function(_0x23697f){while(--_0x23697f){_0x5ada1d['push'](_0x5ada1d['shift']());}};_0x23b414(++_0x56e386);}(_0x8ae9,0x179));var _0x98ae=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8ae9[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x98ae('0x0'));var util=require(_0x98ae('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x98ae('0x2'));var rp=require(_0x98ae('0x3'));var fs=require('fs');var path=require(_0x98ae('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x98ae('0x5'));module[_0x98ae('0x6')]=function(_0x237dd0,_0x3a6b37){return _0x237dd0['define'](_0x98ae('0x7'),attributes,{'tableName':_0x98ae('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};