1200db72d563584507f0bc3698de7b21c2b8a23c
[motion2.git] / server / api / trunk / trunk.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 _0x084a=['util','../../config/logger','api','moment','bluebird','request-promise','path','exports','define','Trunk'];(function(_0x2974c0,_0x1f5954){var _0xb02eb6=function(_0x1dc4d2){while(--_0x1dc4d2){_0x2974c0['push'](_0x2974c0['shift']());}};_0xb02eb6(++_0x1f5954);}(_0x084a,0x1c2));var _0xa084=function(_0x4b7ac8,_0x2840f3){_0x4b7ac8=_0x4b7ac8-0x0;var _0x5198c9=_0x084a[_0x4b7ac8];return _0x5198c9;};'use strict';var _=require('lodash');var util=require(_0xa084('0x0'));var logger=require(_0xa084('0x1'))(_0xa084('0x2'));var moment=require(_0xa084('0x3'));var BPromise=require(_0xa084('0x4'));var rp=require(_0xa084('0x5'));var fs=require('fs');var path=require(_0xa084('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./trunk.attributes');module[_0xa084('0x7')]=function(_0xfd1f89,_0x513642){return _0xfd1f89[_0xa084('0x8')](_0xa084('0x9'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};