6435600dced7a6c08395a32da21395d2b02f846e
[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 _0x4542=['exports','define','Trunk','tools_trunks','lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x278f28,_0x516d01){var _0x588471=function(_0xa2aa39){while(--_0xa2aa39){_0x278f28['push'](_0x278f28['shift']());}};_0x588471(++_0x516d01);}(_0x4542,0x19c));var _0x2454=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x4542[_0x57b54c];return _0x59cc19;};'use strict';var _=require(_0x2454('0x0'));var util=require(_0x2454('0x1'));var logger=require(_0x2454('0x2'))('api');var moment=require(_0x2454('0x3'));var BPromise=require(_0x2454('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2454('0x5'));var rimraf=require(_0x2454('0x6'));var config=require(_0x2454('0x7'));var attributes=require('./trunk.attributes');module[_0x2454('0x8')]=function(_0x168c87,_0x5a2dd5){return _0x168c87[_0x2454('0x9')](_0x2454('0xa'),attributes,{'tableName':_0x2454('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};