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 _0x47f7=['moment','bluebird','request-promise','path','rimraf','./attachment.attributes','exports','util','../../config/logger'];(function(_0x3cba93,_0x5c2fd8){var _0x4a2991=function(_0x3cf95b){while(--_0x3cf95b){_0x3cba93['push'](_0x3cba93['shift']());}};_0x4a2991(++_0x5c2fd8);}(_0x47f7,0x166));var _0x747f=function(_0x4dd540,_0x16013f){_0x4dd540=_0x4dd540-0x0;var _0x470e18=_0x47f7[_0x4dd540];return _0x470e18;};'use strict';var _=require('lodash');var util=require(_0x747f('0x0'));var logger=require(_0x747f('0x1'))('api');var moment=require(_0x747f('0x2'));var BPromise=require(_0x747f('0x3'));var rp=require(_0x747f('0x4'));var fs=require('fs');var path=require(_0x747f('0x5'));var rimraf=require(_0x747f('0x6'));var config=require('../../config/environment');var attributes=require(_0x747f('0x7'));module[_0x747f('0x8')]=function(_0x311bc2,_0x4bc55e){return _0x311bc2['define']('Attachment',attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};