c52faf02b31b38b60e6d479f380cdfeaa00bcbf1
[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 _0x73db=['path','rimraf','../../config/environment','define','Template','tools_templates','lodash','util','moment','request-promise'];(function(_0x260cf8,_0x1e8444){var _0x3b3549=function(_0x2f5a13){while(--_0x2f5a13){_0x260cf8['push'](_0x260cf8['shift']());}};_0x3b3549(++_0x1e8444);}(_0x73db,0x1c8));var _0xb73d=function(_0x18c1d6,_0x50b09c){_0x18c1d6=_0x18c1d6-0x0;var _0x5f225e=_0x73db[_0x18c1d6];return _0x5f225e;};'use strict';var _=require(_0xb73d('0x0'));var util=require(_0xb73d('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xb73d('0x2'));var BPromise=require('bluebird');var rp=require(_0xb73d('0x3'));var fs=require('fs');var path=require(_0xb73d('0x4'));var rimraf=require(_0xb73d('0x5'));var config=require(_0xb73d('0x6'));var attributes=require('./template.attributes');module['exports']=function(_0x3c6099,_0x729d19){return _0x3c6099[_0xb73d('0x7')](_0xb73d('0x8'),attributes,{'tableName':_0xb73d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};