Built motion from commit 5b761a7b.|2.5.36
[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 _0xe3c9=['exports','define','Attachment','attachments','lodash','util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','./attachment.attributes'];(function(_0x48c868,_0x576049){var _0x207f77=function(_0x3afde6){while(--_0x3afde6){_0x48c868['push'](_0x48c868['shift']());}};_0x207f77(++_0x576049);}(_0xe3c9,0x197));var _0x9e3c=function(_0x13e741,_0x5d3c24){_0x13e741=_0x13e741-0x0;var _0x3f8bb3=_0xe3c9[_0x13e741];return _0x3f8bb3;};'use strict';var _=require(_0x9e3c('0x0'));var util=require(_0x9e3c('0x1'));var logger=require(_0x9e3c('0x2'))(_0x9e3c('0x3'));var moment=require(_0x9e3c('0x4'));var BPromise=require(_0x9e3c('0x5'));var rp=require(_0x9e3c('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x9e3c('0x7'));var attributes=require(_0x9e3c('0x8'));module[_0x9e3c('0x9')]=function(_0x1a5b79,_0x433831){return _0x1a5b79[_0x9e3c('0xa')](_0x9e3c('0xb'),attributes,{'tableName':_0x9e3c('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};