1e89ce8e1546e3abb6bcc5f7ccba800564023f06
[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 _0x4c23=['../../config/environment','exports','define','Trunk','tools_trunks','lodash','../../config/logger','moment','request-promise','path'];(function(_0x801512,_0x85c849){var _0x270d84=function(_0x2c2a3f){while(--_0x2c2a3f){_0x801512['push'](_0x801512['shift']());}};_0x270d84(++_0x85c849);}(_0x4c23,0x1b3));var _0x34c2=function(_0x182af9,_0x465a32){_0x182af9=_0x182af9-0x0;var _0x5c3e08=_0x4c23[_0x182af9];return _0x5c3e08;};'use strict';var _=require(_0x34c2('0x0'));var util=require('util');var logger=require(_0x34c2('0x1'))('api');var moment=require(_0x34c2('0x2'));var BPromise=require('bluebird');var rp=require(_0x34c2('0x3'));var fs=require('fs');var path=require(_0x34c2('0x4'));var rimraf=require('rimraf');var config=require(_0x34c2('0x5'));var attributes=require('./trunk.attributes');module[_0x34c2('0x6')]=function(_0x33d2f3,_0x55e402){return _0x33d2f3[_0x34c2('0x7')](_0x34c2('0x8'),attributes,{'tableName':_0x34c2('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};