Built motion from commit 19a84241.|2.5.34
[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 _0xe5f0=['../../config/logger','api','bluebird','path','exports','Attachment','lodash','util'];(function(_0xdf9162,_0x1c16e6){var _0x5d3896=function(_0x1b536f){while(--_0x1b536f){_0xdf9162['push'](_0xdf9162['shift']());}};_0x5d3896(++_0x1c16e6);}(_0xe5f0,0x186));var _0x0e5f=function(_0x30cee,_0x57b5f4){_0x30cee=_0x30cee-0x0;var _0x308a7f=_0xe5f0[_0x30cee];return _0x308a7f;};'use strict';var _=require(_0x0e5f('0x0'));var util=require(_0x0e5f('0x1'));var logger=require(_0x0e5f('0x2'))(_0x0e5f('0x3'));var moment=require('moment');var BPromise=require(_0x0e5f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0e5f('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./attachment.attributes');module[_0x0e5f('0x6')]=function(_0x4d22cd,_0x225f73){return _0x4d22cd['define'](_0x0e5f('0x7'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};