Built motion from commit 52c8a02d.|2.6.29
[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 _0x341d=['bluebird','path','rimraf','../../config/environment','exports','define','Trunk','lodash','util','../../config/logger','api','moment'];(function(_0x1eb761,_0x57a2ea){var _0x368bcb=function(_0x1fab65){while(--_0x1fab65){_0x1eb761['push'](_0x1eb761['shift']());}};_0x368bcb(++_0x57a2ea);}(_0x341d,0x97));var _0xd341=function(_0x4a3212,_0x51e24b){_0x4a3212=_0x4a3212-0x0;var _0x4109cd=_0x341d[_0x4a3212];return _0x4109cd;};'use strict';var _=require(_0xd341('0x0'));var util=require(_0xd341('0x1'));var logger=require(_0xd341('0x2'))(_0xd341('0x3'));var moment=require(_0xd341('0x4'));var BPromise=require(_0xd341('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd341('0x6'));var rimraf=require(_0xd341('0x7'));var config=require(_0xd341('0x8'));var attributes=require('./trunk.attributes');module[_0xd341('0x9')]=function(_0x37d53e,_0xecdb7a){return _0x37d53e[_0xd341('0xa')](_0xd341('0xb'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};