Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0xf73f=['rimraf','../../config/environment','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','bluebird','path'];(function(_0x4c4a01,_0x365c6f){var _0x303469=function(_0x9b33f1){while(--_0x9b33f1){_0x4c4a01['push'](_0x4c4a01['shift']());}};_0x303469(++_0x365c6f);}(_0xf73f,0x119));var _0xff73=function(_0x4988a6,_0x109072){_0x4988a6=_0x4988a6-0x0;var _0x1c4539=_0xf73f[_0x4988a6];return _0x1c4539;};'use strict';var _=require(_0xff73('0x0'));var util=require(_0xff73('0x1'));var logger=require(_0xff73('0x2'))(_0xff73('0x3'));var moment=require(_0xff73('0x4'));var BPromise=require(_0xff73('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xff73('0x6'));var rimraf=require(_0xff73('0x7'));var config=require(_0xff73('0x8'));var attributes=require(_0xff73('0x9'));module[_0xff73('0xa')]=function(_0x277d54,_0x3d2542){return _0x277d54[_0xff73('0xb')](_0xff73('0xc'),attributes,{'tableName':_0xff73('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xff73('0xe'),'collate':_0xff73('0xf')});};