e5ce4b75ea82d248222d191c308945122aefd7da
[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 _0xaeed=['../../config/environment','./trunk.attributes','exports','define','tools_trunks','lodash','util','../../config/logger','api','request-promise'];(function(_0x23f064,_0x3279b8){var _0xba28ba=function(_0x154ace){while(--_0x154ace){_0x23f064['push'](_0x23f064['shift']());}};_0xba28ba(++_0x3279b8);}(_0xaeed,0x7d));var _0xdaee=function(_0x1326be,_0x38a92b){_0x1326be=_0x1326be-0x0;var _0x2bba0e=_0xaeed[_0x1326be];return _0x2bba0e;};'use strict';var _=require(_0xdaee('0x0'));var util=require(_0xdaee('0x1'));var logger=require(_0xdaee('0x2'))(_0xdaee('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xdaee('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xdaee('0x5'));var attributes=require(_0xdaee('0x6'));module[_0xdaee('0x7')]=function(_0x31c929,_0x46b542){return _0x31c929[_0xdaee('0x8')]('Trunk',attributes,{'tableName':_0xdaee('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};