1fb5b85c895774310112b79a5d8859f6c2589f0c
[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 _0x750a=['bluebird','request-promise','path','rimraf','../../config/environment','exports','lodash','util','../../config/logger','api'];(function(_0x3c500e,_0x3b65a9){var _0x4dddd5=function(_0x163f6c){while(--_0x163f6c){_0x3c500e['push'](_0x3c500e['shift']());}};_0x4dddd5(++_0x3b65a9);}(_0x750a,0x9c));var _0xa750=function(_0x4b8fdb,_0x5d7f38){_0x4b8fdb=_0x4b8fdb-0x0;var _0x4e5601=_0x750a[_0x4b8fdb];return _0x4e5601;};'use strict';var _=require(_0xa750('0x0'));var util=require(_0xa750('0x1'));var logger=require(_0xa750('0x2'))(_0xa750('0x3'));var moment=require('moment');var BPromise=require(_0xa750('0x4'));var rp=require(_0xa750('0x5'));var fs=require('fs');var path=require(_0xa750('0x6'));var rimraf=require(_0xa750('0x7'));var config=require(_0xa750('0x8'));var attributes=require('./attachment.attributes');module[_0xa750('0x9')]=function(_0x10d380,_0x14e476){return _0x10d380['define']('Attachment',attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};