Built motion from commit 43538d75.|2.5.35
[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 _0xc15c=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./attachment.attributes','exports','attachments','lodash','api'];(function(_0x2f7231,_0x20670d){var _0x1a9d86=function(_0x27c00d){while(--_0x27c00d){_0x2f7231['push'](_0x2f7231['shift']());}};_0x1a9d86(++_0x20670d);}(_0xc15c,0x132));var _0xcc15=function(_0xea7642,_0x4667d0){_0xea7642=_0xea7642-0x0;var _0x3e1291=_0xc15c[_0xea7642];return _0x3e1291;};'use strict';var _=require(_0xcc15('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xcc15('0x1'));var moment=require(_0xcc15('0x2'));var BPromise=require(_0xcc15('0x3'));var rp=require(_0xcc15('0x4'));var fs=require('fs');var path=require(_0xcc15('0x5'));var rimraf=require(_0xcc15('0x6'));var config=require(_0xcc15('0x7'));var attributes=require(_0xcc15('0x8'));module[_0xcc15('0x9')]=function(_0x43a44c,_0x4d2df4){return _0x43a44c['define']('Attachment',attributes,{'tableName':_0xcc15('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};