5ed8695d2bc289ebaf332b0515b2e5a15a1e1813
[motion2.git] / server / api / attachment / attachment.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x3f25=['../../config/environment','./attachment.attributes','exports','define','Attachment','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf'];(function(_0x4403c7,_0x2d7e13){var _0x3139b2=function(_0x2043b5){while(--_0x2043b5){_0x4403c7['push'](_0x4403c7['shift']());}};_0x3139b2(++_0x2d7e13);}(_0x3f25,0x171));var _0x53f2=function(_0x136cbc,_0x3e4466){_0x136cbc=_0x136cbc-0x0;var _0x2a788c=_0x3f25[_0x136cbc];return _0x2a788c;};'use strict';var _=require(_0x53f2('0x0'));var util=require(_0x53f2('0x1'));var logger=require(_0x53f2('0x2'))(_0x53f2('0x3'));var moment=require('moment');var BPromise=require(_0x53f2('0x4'));var rp=require(_0x53f2('0x5'));var fs=require('fs');var path=require(_0x53f2('0x6'));var rimraf=require(_0x53f2('0x7'));var config=require(_0x53f2('0x8'));var attributes=require(_0x53f2('0x9'));module[_0x53f2('0xa')]=function(_0x3dd204,_0xc06d01){return _0x3dd204[_0x53f2('0xb')](_0x53f2('0xc'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};