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 _0x530f=['path','rimraf','../../config/environment','./attachment.attributes','exports','define','Attachment','util','moment','bluebird','request-promise'];(function(_0x4f8b73,_0x499742){var _0x4ae551=function(_0x11fc3e){while(--_0x11fc3e){_0x4f8b73['push'](_0x4f8b73['shift']());}};_0x4ae551(++_0x499742);}(_0x530f,0x167));var _0xf530=function(_0x115edd,_0x505f03){_0x115edd=_0x115edd-0x0;var _0x255f84=_0x530f[_0x115edd];return _0x255f84;};'use strict';var _=require('lodash');var util=require(_0xf530('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xf530('0x1'));var BPromise=require(_0xf530('0x2'));var rp=require(_0xf530('0x3'));var fs=require('fs');var path=require(_0xf530('0x4'));var rimraf=require(_0xf530('0x5'));var config=require(_0xf530('0x6'));var attributes=require(_0xf530('0x7'));module[_0xf530('0x8')]=function(_0x58f5f8,_0x3a0301){return _0x58f5f8[_0xf530('0x9')](_0xf530('0xa'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};