d9389469a160f97f3c1a826be08baee96602da0c
[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 _0x7ae7=['rimraf','../../config/environment','./trunk.attributes','exports','define','Trunk','tools_trunks','../../config/logger','request-promise','path'];(function(_0x57fc3c,_0x3035a8){var _0x49b4c4=function(_0x427391){while(--_0x427391){_0x57fc3c['push'](_0x57fc3c['shift']());}};_0x49b4c4(++_0x3035a8);}(_0x7ae7,0x1bf));var _0x77ae=function(_0x34db17,_0x51dff0){_0x34db17=_0x34db17-0x0;var _0x5ba6b2=_0x7ae7[_0x34db17];return _0x5ba6b2;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x77ae('0x0'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x77ae('0x1'));var fs=require('fs');var path=require(_0x77ae('0x2'));var rimraf=require(_0x77ae('0x3'));var config=require(_0x77ae('0x4'));var attributes=require(_0x77ae('0x5'));module[_0x77ae('0x6')]=function(_0x4e312a,_0x47444e){return _0x4e312a[_0x77ae('0x7')](_0x77ae('0x8'),attributes,{'tableName':_0x77ae('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};