a60a80d17d45dfeca2a2eecf81eeb8c1578566bd
[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 _0x795f=['moment','bluebird','request-promise','rimraf','exports','Attachment','util'];(function(_0x53b497,_0x2815a1){var _0x2b9b63=function(_0x34d9ab){while(--_0x34d9ab){_0x53b497['push'](_0x53b497['shift']());}};_0x2b9b63(++_0x2815a1);}(_0x795f,0x68));var _0xf795=function(_0x227d6b,_0x4deec6){_0x227d6b=_0x227d6b-0x0;var _0x64ffd=_0x795f[_0x227d6b];return _0x64ffd;};'use strict';var _=require('lodash');var util=require(_0xf795('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xf795('0x1'));var BPromise=require(_0xf795('0x2'));var rp=require(_0xf795('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf795('0x4'));var config=require('../../config/environment');var attributes=require('./attachment.attributes');module[_0xf795('0x5')]=function(_0x4bdb11,_0x4502c3){return _0x4bdb11['define'](_0xf795('0x6'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};