Built motion from commit 9d0783e6.|2.6.13
[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 _0x9c49=['moment','bluebird','rimraf','../../config/environment','./trunk.attributes','exports','define','tools_trunks','lodash','util'];(function(_0x238671,_0x34aea0){var _0x474844=function(_0x26cab4){while(--_0x26cab4){_0x238671['push'](_0x238671['shift']());}};_0x474844(++_0x34aea0);}(_0x9c49,0x148));var _0x99c4=function(_0x236f12,_0xa48241){_0x236f12=_0x236f12-0x0;var _0x3753b7=_0x9c49[_0x236f12];return _0x3753b7;};'use strict';var _=require(_0x99c4('0x0'));var util=require(_0x99c4('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x99c4('0x2'));var BPromise=require(_0x99c4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x99c4('0x4'));var config=require(_0x99c4('0x5'));var attributes=require(_0x99c4('0x6'));module[_0x99c4('0x7')]=function(_0x4ea4ef,_0x31f8e7){return _0x4ea4ef[_0x99c4('0x8')]('Trunk',attributes,{'tableName':_0x99c4('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};