Built motion from commit b5413ace.|2.6.9
[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 _0x8bc5=['path','rimraf','./template.attributes','exports','tools_templates','util','../../config/logger','api','bluebird','request-promise'];(function(_0x21f8ee,_0x46da73){var _0x46c824=function(_0x45d041){while(--_0x45d041){_0x21f8ee['push'](_0x21f8ee['shift']());}};_0x46c824(++_0x46da73);}(_0x8bc5,0xcd));var _0x58bc=function(_0xc39d20,_0x58e7ab){_0xc39d20=_0xc39d20-0x0;var _0x50a311=_0x8bc5[_0xc39d20];return _0x50a311;};'use strict';var _=require('lodash');var util=require(_0x58bc('0x0'));var logger=require(_0x58bc('0x1'))(_0x58bc('0x2'));var moment=require('moment');var BPromise=require(_0x58bc('0x3'));var rp=require(_0x58bc('0x4'));var fs=require('fs');var path=require(_0x58bc('0x5'));var rimraf=require(_0x58bc('0x6'));var config=require('../../config/environment');var attributes=require(_0x58bc('0x7'));module[_0x58bc('0x8')]=function(_0x15e7ea,_0x5aba87){return _0x15e7ea['define']('Template',attributes,{'tableName':_0x58bc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};