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 _0x85d2=['api','path','rimraf','./attachment.attributes','exports','define','Attachment','lodash','../../config/logger'];(function(_0x58deac,_0x5c9955){var _0x991e8b=function(_0x2feeb4){while(--_0x2feeb4){_0x58deac['push'](_0x58deac['shift']());}};_0x991e8b(++_0x5c9955);}(_0x85d2,0xf1));var _0x285d=function(_0x882dec,_0x2db3fa){_0x882dec=_0x882dec-0x0;var _0x1d4e99=_0x85d2[_0x882dec];return _0x1d4e99;};'use strict';var _=require(_0x285d('0x0'));var util=require('util');var logger=require(_0x285d('0x1'))(_0x285d('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x285d('0x3'));var rimraf=require(_0x285d('0x4'));var config=require('../../config/environment');var attributes=require(_0x285d('0x5'));module[_0x285d('0x6')]=function(_0x326aef,_0x4f7c81){return _0x326aef[_0x285d('0x7')](_0x285d('0x8'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};