b5066a12484818531513c1c15aaf6fecc3b21d99
[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 _0xe8e8=['moment','bluebird','rimraf','./attachment.attributes','exports','Attachment','lodash','util'];(function(_0x58c102,_0x4196c6){var _0x2c0950=function(_0x36cc66){while(--_0x36cc66){_0x58c102['push'](_0x58c102['shift']());}};_0x2c0950(++_0x4196c6);}(_0xe8e8,0xc6));var _0x8e8e=function(_0x3a5907,_0x126e8f){_0x3a5907=_0x3a5907-0x0;var _0x1b1b4e=_0xe8e8[_0x3a5907];return _0x1b1b4e;};'use strict';var _=require(_0x8e8e('0x0'));var util=require(_0x8e8e('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x8e8e('0x2'));var BPromise=require(_0x8e8e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8e8e('0x4'));var config=require('../../config/environment');var attributes=require(_0x8e8e('0x5'));module[_0x8e8e('0x6')]=function(_0x355de7,_0x294176){return _0x355de7['define'](_0x8e8e('0x7'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};