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 _0xd124=['util','../../config/logger','moment','bluebird','../../config/environment','exports','Attachment','lodash'];(function(_0x48b6c0,_0x19c54c){var _0x7cd081=function(_0x539c31){while(--_0x539c31){_0x48b6c0['push'](_0x48b6c0['shift']());}};_0x7cd081(++_0x19c54c);}(_0xd124,0x97));var _0x4d12=function(_0x51e592,_0x255ca6){_0x51e592=_0x51e592-0x0;var _0x3de660=_0xd124[_0x51e592];return _0x3de660;};'use strict';var _=require(_0x4d12('0x0'));var util=require(_0x4d12('0x1'));var logger=require(_0x4d12('0x2'))('api');var moment=require(_0x4d12('0x3'));var BPromise=require(_0x4d12('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4d12('0x5'));var attributes=require('./attachment.attributes');module[_0x4d12('0x6')]=function(_0x15ffdd,_0x5f2027){return _0x15ffdd['define'](_0x4d12('0x7'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};