Built motion from commit a61a4a20.|2.5.46
[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 _0x37c3=['./attachment.attributes','exports','define','Attachment','attachments','lodash','util','../../config/logger','rimraf','../../config/environment'];(function(_0x37b411,_0x189b2c){var _0xaf16a1=function(_0x658169){while(--_0x658169){_0x37b411['push'](_0x37b411['shift']());}};_0xaf16a1(++_0x189b2c);}(_0x37c3,0xaf));var _0x337c=function(_0x4dba49,_0x190d62){_0x4dba49=_0x4dba49-0x0;var _0x4136b8=_0x37c3[_0x4dba49];return _0x4136b8;};'use strict';var _=require(_0x337c('0x0'));var util=require(_0x337c('0x1'));var logger=require(_0x337c('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x337c('0x3'));var config=require(_0x337c('0x4'));var attributes=require(_0x337c('0x5'));module[_0x337c('0x6')]=function(_0x23fca2,_0x5bcc01){return _0x23fca2[_0x337c('0x7')](_0x337c('0x8'),attributes,{'tableName':_0x337c('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};