32d4263601eb5796c347335322b05de5825208c1
[motion2.git] / server / api / template / template.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 _0x277f=['../../config/environment','exports','Template','tools_templates','util','../../config/logger','moment','bluebird','path'];(function(_0x4a504a,_0x136369){var _0x58eda4=function(_0x20a77c){while(--_0x20a77c){_0x4a504a['push'](_0x4a504a['shift']());}};_0x58eda4(++_0x136369);}(_0x277f,0x1bd));var _0xf277=function(_0x4557ac,_0x3037a9){_0x4557ac=_0x4557ac-0x0;var _0x2b3654=_0x277f[_0x4557ac];return _0x2b3654;};'use strict';var _=require('lodash');var util=require(_0xf277('0x0'));var logger=require(_0xf277('0x1'))('api');var moment=require(_0xf277('0x2'));var BPromise=require(_0xf277('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf277('0x4'));var rimraf=require('rimraf');var config=require(_0xf277('0x5'));var attributes=require('./template.attributes');module[_0xf277('0x6')]=function(_0x831bf0,_0x46c133){return _0x831bf0['define'](_0xf277('0x7'),attributes,{'tableName':_0xf277('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};