a5b61e3a20fb11e40f0a30828cc9703d8a56d263
[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 _0xbae0=['request-promise','../../config/environment','exports','define','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x24bdf1,_0x1799d8){var _0x5b53c5=function(_0x56b1f1){while(--_0x56b1f1){_0x24bdf1['push'](_0x24bdf1['shift']());}};_0x5b53c5(++_0x1799d8);}(_0xbae0,0x1c6));var _0x0bae=function(_0x4ed6c7,_0x2e6803){_0x4ed6c7=_0x4ed6c7-0x0;var _0x112d0c=_0xbae0[_0x4ed6c7];return _0x112d0c;};'use strict';var _=require(_0x0bae('0x0'));var util=require(_0x0bae('0x1'));var logger=require(_0x0bae('0x2'))(_0x0bae('0x3'));var moment=require(_0x0bae('0x4'));var BPromise=require(_0x0bae('0x5'));var rp=require(_0x0bae('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x0bae('0x7'));var attributes=require('./attachment.attributes');module[_0x0bae('0x8')]=function(_0x3dda4d,_0x45af52){return _0x3dda4d[_0x0bae('0x9')]('Attachment',attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};