Built motion from commit da24aabd.|2.6.20
[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 _0x94f4=['../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./attachment.attributes','define','attachments','lodash'];(function(_0x3219ed,_0x441891){var _0xe0783a=function(_0x4b666e){while(--_0x4b666e){_0x3219ed['push'](_0x3219ed['shift']());}};_0xe0783a(++_0x441891);}(_0x94f4,0xdb));var _0x494f=function(_0x445b6d,_0x31af9b){_0x445b6d=_0x445b6d-0x0;var _0x1bcd5c=_0x94f4[_0x445b6d];return _0x1bcd5c;};'use strict';var _=require(_0x494f('0x0'));var util=require('util');var logger=require(_0x494f('0x1'))(_0x494f('0x2'));var moment=require(_0x494f('0x3'));var BPromise=require(_0x494f('0x4'));var rp=require(_0x494f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x494f('0x6'));var config=require(_0x494f('0x7'));var attributes=require(_0x494f('0x8'));module['exports']=function(_0x22abea,_0x5c9b07){return _0x22abea[_0x494f('0x9')]('Attachment',attributes,{'tableName':_0x494f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};