Built motion from commit 953226e6.|2.6.32
[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 _0x27e4=['./attachment.attributes','exports','define','Attachment','attachments','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x5d5bfd,_0x458ce6){var _0x542a3d=function(_0x29bc1a){while(--_0x29bc1a){_0x5d5bfd['push'](_0x5d5bfd['shift']());}};_0x542a3d(++_0x458ce6);}(_0x27e4,0x179));var _0x427e=function(_0x5663a5,_0x3d1be6){_0x5663a5=_0x5663a5-0x0;var _0x3821de=_0x27e4[_0x5663a5];return _0x3821de;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x427e('0x0'))(_0x427e('0x1'));var moment=require(_0x427e('0x2'));var BPromise=require(_0x427e('0x3'));var rp=require(_0x427e('0x4'));var fs=require('fs');var path=require(_0x427e('0x5'));var rimraf=require('rimraf');var config=require(_0x427e('0x6'));var attributes=require(_0x427e('0x7'));module[_0x427e('0x8')]=function(_0x9e6af7,_0x1a600a){return _0x9e6af7[_0x427e('0x9')](_0x427e('0xa'),attributes,{'tableName':_0x427e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};