648fae26d82346527b496bb210c18290244ed1a0
[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 _0x5f66=['request-promise','path','../../config/environment','./attachment.attributes','exports','Attachment','attachments','lodash','util','../../config/logger','api','moment'];(function(_0x4950ec,_0xb31391){var _0x2c68b0=function(_0x37c8a7){while(--_0x37c8a7){_0x4950ec['push'](_0x4950ec['shift']());}};_0x2c68b0(++_0xb31391);}(_0x5f66,0x17b));var _0x65f6=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0x5f66[_0x21a9d9];return _0x46adce;};'use strict';var _=require(_0x65f6('0x0'));var util=require(_0x65f6('0x1'));var logger=require(_0x65f6('0x2'))(_0x65f6('0x3'));var moment=require(_0x65f6('0x4'));var BPromise=require('bluebird');var rp=require(_0x65f6('0x5'));var fs=require('fs');var path=require(_0x65f6('0x6'));var rimraf=require('rimraf');var config=require(_0x65f6('0x7'));var attributes=require(_0x65f6('0x8'));module[_0x65f6('0x9')]=function(_0x270788,_0x2d25f7){return _0x270788['define'](_0x65f6('0xa'),attributes,{'tableName':_0x65f6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};