b16969fdf0294212ec15b3bbf9e8dc0ec1ff1593
[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 _0x1c17=['exports','define','Attachment','attachments','moment','bluebird','request-promise','../../config/environment','./attachment.attributes'];(function(_0x242a4f,_0x369c57){var _0x122117=function(_0x55a797){while(--_0x55a797){_0x242a4f['push'](_0x242a4f['shift']());}};_0x122117(++_0x369c57);}(_0x1c17,0x13f));var _0x71c1=function(_0x283cfb,_0x49429c){_0x283cfb=_0x283cfb-0x0;var _0x85ea4b=_0x1c17[_0x283cfb];return _0x85ea4b;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x71c1('0x0'));var BPromise=require(_0x71c1('0x1'));var rp=require(_0x71c1('0x2'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x71c1('0x3'));var attributes=require(_0x71c1('0x4'));module[_0x71c1('0x5')]=function(_0x360bdf,_0x5d286f){return _0x360bdf[_0x71c1('0x6')](_0x71c1('0x7'),attributes,{'tableName':_0x71c1('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};