Built motion from commit 3c2ce842.|2.6.31
[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 _0xace2=['rimraf','../../config/environment','exports','define','Template','tools_templates','lodash','util','api','moment','path'];(function(_0x390421,_0x2c96aa){var _0x5677a8=function(_0x6fe03b){while(--_0x6fe03b){_0x390421['push'](_0x390421['shift']());}};_0x5677a8(++_0x2c96aa);}(_0xace2,0x10e));var _0x2ace=function(_0x7185f7,_0x37065){_0x7185f7=_0x7185f7-0x0;var _0x182e45=_0xace2[_0x7185f7];return _0x182e45;};'use strict';var _=require(_0x2ace('0x0'));var util=require(_0x2ace('0x1'));var logger=require('../../config/logger')(_0x2ace('0x2'));var moment=require(_0x2ace('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x2ace('0x4'));var rimraf=require(_0x2ace('0x5'));var config=require(_0x2ace('0x6'));var attributes=require('./template.attributes');module[_0x2ace('0x7')]=function(_0x420093,_0x1d959f){return _0x420093[_0x2ace('0x8')](_0x2ace('0x9'),attributes,{'tableName':_0x2ace('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};