Built motion from commit (unavailable).|2.5.10
[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 _0x7382=['Attachment','util','path','rimraf','../../config/environment','./attachment.attributes','exports','define'];(function(_0x10e85c,_0x21545b){var _0x205655=function(_0x298339){while(--_0x298339){_0x10e85c['push'](_0x10e85c['shift']());}};_0x205655(++_0x21545b);}(_0x7382,0x111));var _0x2738=function(_0x3d7ff9,_0x46ea3e){_0x3d7ff9=_0x3d7ff9-0x0;var _0x501a60=_0x7382[_0x3d7ff9];return _0x501a60;};'use strict';var _=require('lodash');var util=require(_0x2738('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x2738('0x1'));var rimraf=require(_0x2738('0x2'));var config=require(_0x2738('0x3'));var attributes=require(_0x2738('0x4'));module[_0x2738('0x5')]=function(_0x5bb77c,_0x1958d2){return _0x5bb77c[_0x2738('0x6')](_0x2738('0x7'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};